• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • Last Modified:

i want to provide the output of df -k to insert scirpt in oracle

i want a script for output of df -k into oracle table. i need a scirpt for the df -k to generate insert script so that i can run in oracle some thing like .

insert into table aaaa values ('-------output of df -k-------');

0
rpmindtools
Asked:
rpmindtools
  • 2
1 Solution
 
TintinCommented:
Do you want the output of dk -k in a single column or multiple columns?
0
 
rpmindtoolsAuthor Commented:
Single Column
0
 
TintinCommented:
Something like:

#!/bin/sh

sqlplus -s / <<EOF
insert into table aaaa values `df -k`
/
EOF
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now