![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| comands inside the script | mercuryshipzz | Security | 4 | 02-13-2008 12:25 PM |
| How to run an SQL script inside a shell | stevefox | Shell Programming and Scripting | 1 | 06-15-2006 07:11 PM |
| how to find Script file location inside script | asami | Shell Programming and Scripting | 10 | 03-14-2006 08:57 PM |
| rsh script with inside a for loop | trekianov | Shell Programming and Scripting | 4 | 01-20-2006 05:54 AM |
| Using tar inside a shell script | kas7225 | Shell Programming and Scripting | 2 | 05-19-2005 08:06 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
sql inside a script
Hi,
In a KSH script i have to run a sybase query and get the count into a unix variable. How can i do that? Your help is much appriciated. Thanks, sateesh |
| Forum Sponsor | ||
|
|
|
|||
|
In ksh connect to sybase (it might differ with the version you use) generically it should be :
isql -U<LOGIN> -P<PASSWD> -S<SERVER> -w2000 << EOF > <LOGFILE> ----Your queries come here ------ EOF The above format will let you execute the query in ksh script. Of coure if isql is not in your PATH you will have to give the whole PATH rather than just isql Let me know if you need more help |
|
|||
|
Check this post.
|