![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Invoking Oracle stored procedure in unix shell script | hidnana | Shell Programming and Scripting | 1 | 10-15-2008 07:37 AM |
| returning to the parent shell after invoking a script within a script | gurukottur | Shell Programming and Scripting | 5 | 09-26-2006 07:05 AM |
| Invoking Shell Script via php | bubeshj | Shell Programming and Scripting | 2 | 06-30-2006 06:09 AM |
| Invoking shell script from html/jsp page | bubeshj | Shell Programming and Scripting | 2 | 06-28-2006 01:53 PM |
| invoking one shell script from other | ajay xavier | Shell Programming and Scripting | 3 | 05-24-2006 03:39 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Wrong Shell Invoking My Script On Linux
I have a shell script that does NOT have the '#!' line at the top. It is written for ksh. The shell in my passwd entry is '/usr/bin/ksh' and my SHELL env variable is '/usr/bin/ksh'. Now, here's the issue. I invoke the script on Solaris with './myprog'. This works fine. I also run the same script on Mandrake 9.0 Linux and Red Hat 7.3 Linux. It runs fine on both of these. Again, my SHELL env variable and passwd entry both have '/usr/bin/ksh'. When I invoke the program on Red Hat 7.2 with './myprog', it is using the '/bin/sh' shell. Why would this be ? If my SHELL var and passwd entry both point to 'ksh', I don't understand how it would be using '/bin/sh'. Also, I can't just add the '#!' line to the top because this script invokes other scripts as well and it just pushes the problem to a different point. Any ideas ????
|
|
|||||
|
Re: Wrong Shell Invoking My Script On Linux
Quote:
Quote:
As for what is happening, see this thread. |
|
||||
|
Re: Re: Wrong Shell Invoking My Script On Linux
Quote:
|
![]() |
| Bookmarks |
| Tags |
| shell environment variable, shell scripting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|