![]() |
|
|
|
|
|||||||
| 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 01: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 09:57 PM |
| rsh script with inside a for loop | trekianov | Shell Programming and Scripting | 4 | 01-20-2006 06: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 | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Thanks for the reply,
But i want to run that command and take count assigned to a variable. How can i do that |
|
#4
|
|||
|
|||
|
Check this post.
|
|
#5
|
|||
|
|||
|
Hi can you tell me if there is a sybase sql client (iSQL) that works with SCO6 and if so where can I download it from?
|
|||
| Google The UNIX and Linux Forums |