Solved

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

Posted on 2007-11-25
3
363 Views
Last Modified: 2007-12-13
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
Comment
Question by:rpmindtools
  • 2
3 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 20346737
Do you want the output of dk -k in a single column or multiple columns?
0
 

Author Comment

by:rpmindtools
ID: 20347008
Single Column
0
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 20347847
Something like:

#!/bin/sh

sqlplus -s / <<EOF
insert into table aaaa values `df -k`
/
EOF
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question