This is a discussion on writing a shell script to find out my shell name within the Shell scripting forums, part of the Development/Scripting category; Hello my name is john and im a newbie. I am taking Solaris in school, unix and i need a ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hello my name is john and im a newbie. I am taking Solaris in school, unix and i need a help on writing a shell script that outputs the name of the shell that is executing it...
|
| Sponsored Links | ||
|
|
|
||||
|
Code:
#!/bin/bash echo "*** Method # 1" echo "My shell info: " ps -p $$ echo "*** Method # 2" echo "My shell is $(echo $SHELL)" |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Run mv command from ftp shell script | subin | Shell scripting | 6 | 05-02-2008 10:44 AM |
| Find the nested Shell level? | hemcreddy | Shell scripting | 2 | 04-22-2008 10:59 AM |
| need help in writing backup script | vishaltitre | Shell scripting | 4 | 05-23-2007 11:07 PM |
| require shell script | puppen | Shell scripting | 4 | 04-12-2006 10:42 PM |
| Shell Script dought | Mahesh | Shell scripting | 3 | 02-16-2005 01:13 PM |