![]() |
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 |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error executing shell script in Linux | Chaitrali | Shell Programming and Scripting | 2 | 05-13-2009 03:57 AM |
| Executing a shell script from windows;script present in unix | rajneesh_kapoor | UNIX for Advanced & Expert Users | 4 | 05-08-2009 03:54 PM |
| error while executing the script | dsdev_123 | Shell Programming and Scripting | 2 | 03-30-2009 06:46 PM |
| Error executing shell command from a perl script | voorkey | Shell Programming and Scripting | 5 | 03-30-2009 08:48 AM |
| Error message while executing the shell script | ajayyaduwanshi | Shell Programming and Scripting | 4 | 10-25-2007 08:12 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I have following shell script code : ------------------------------------------------------------------ #!/bin/bash SCRIPTS_DIR="/scriptsDir1" # tables login/password APIL_USER="uname/pswd" I2_USER="uname/pswd" # Database DB="db1" cd "$SCRIPTS_DIR/scriptsDir2" sqlplus "$APIL_USER@$DB" @update.sql > $SCRIPTS_DIR/scriptsDir2/logs/update.log exit ------------------------------------------------------------------ I get following errors: - : command not found : At every blank line - : No such file or directorysh: line 12: cd: /abpp/informaticadata/scripts Also to execute the shell need to prefix the file name with "sh". These commands work correctly if executed on command prompt. But if I execute the same script on another Linux server it does NOT throw error. Also no prefixing of "sh" for execution is required. Can anyone tell what settings to be checked??? I have checked user level settings, they are same!!! Thanks in advance. Regards, Chaitrali. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|