Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Which shell is running my script?
Name: cristian23 Date: September 19, 2007 at 06:40:10 Pacific OS: UNIX/POSIX CPU/Ram: 512 Product: xx
Comment:
Hi, I'm trying to find out from within a script which shell is running it, so I can take some decisions based on that. If it's ksh, bash or something else.
The $SHELL variable stores the default user shell, not the current one, and "echo $0" is good only from the command prompt.
Summary: Hi, i have written a shell script that needs to be run from cron. Al i know about "cron" is that we can get it to run jobs periodically. The requirement of my assignment is that my script should be...
Summary: Is there a command you can use within a script to quit running the script? I have a menu and the last option is quit. I need to be able to quit the script if this option is selected because I have mor...
Summary: Here is a tree script that was sent to me a while back. I modified it to use Korn shell and took out all the `expr` stuff and typeset some integer variables so the script would run a little faster. #...