The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sunsolaris shell script runs only as super user gjithin SUN Solaris 4 05-09-2008 05:47 AM
passing values from sql to shell script sachin.gangadha Shell Programming and Scripting 3 04-22-2008 08:11 PM
Values of value($$X) in unix shell script ganesh_111 Shell Programming and Scripting 5 09-22-2006 03:25 AM
Passing Values from a shell script dhananjaysk Shell Programming and Scripting 6 04-06-2006 06:33 AM
Returning Values (shell Script) jennifer01 Shell Programming and Scripting 3 11-29-2001 02:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-24-2007
Registered User
 

Join Date: Oct 2007
Posts: 1
Shell Script: want to insert values in database when update script runs

Hi ,

I am new to linux and also also to shell scripting.
I have one shell script which unpacks .tgz file and install software on machine.
When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder like: tmp/MyFile into "MyTable"(database).
I don't have any idea about how to read data from file and insert that data into database table. This is for description and log field. Datatype of these fields is CLOB. Even I want to find max(id) from exiting table data, so that I can insert mew entry as maxid+1.

I am facing problems while writing this script.
Could anybody help me with this?

Thanks in advance
Ring
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
What database are you talking about?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0