![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| oracle connection from shell script | DILEEP410 | Shell Programming and Scripting | 4 | 07-01-2009 02:19 AM |
| Connecting to sybase via shell script. | arvindcgi | Shell Programming and Scripting | 1 | 05-20-2008 10:30 AM |
| Connect to sybase database using Korn shell script | bhgopi | Shell Programming and Scripting | 7 | 08-10-2005 09:34 AM |
| remote sybase connection and php error. | lealyz | Shell Programming and Scripting | 4 | 08-23-2004 04:52 AM |
| shell script- oracle connection problem | nattynatty | Shell Programming and Scripting | 4 | 08-14-2002 09:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||||
|
It's really simple - Linux is not a shell - it's a operating system. So it's impossible to write a 'linux' shell script. You can write shell scripts on a linux system but they would be one of the normal shells (sh,ksh,csh,bash,tcsh,...).
|
|
||||
|
su sybase -c command....
RTM,
what does the su sybase -c "$INSTALL/startserver -f $INSTALL/RUN_FOO -f $INSTALL/RUN_FOO_BACKUP &" command do? Would it allow me to change between several interface files (that contain the sybase host info)? If so, I noticed that you had 2 of them, so does that mean that you can utilize 2 (or more) different interface files to use to connect with ISQL? Thanks, Harold ![]() |
|
|||||
|
Quote:
If it doesn't work with two -f instances, then create two different lines for each instead. The DBA who wrote this script doesn't work at my company anymore so I can't even ask him. |
|
||||
|
I guess ..you are asking how to connect to sybase using shell script.
use here documents ISQL -U -P -S -o output.txt ............ << EOF Whatever you want to do in the sybase EOF The output will be written to that file specified with -o switch (in the above case --> output.txt). Hope this helps. Jingi |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| linux, solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|