Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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)"
__________________
Vivek Gite Linux Evangelist |
![]() |
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 | 02-05-2008 09:44 AM |
| Find the nested Shell level? | hemcreddy | Shell scripting | 2 | 22-04-2008 09:59 AM |
| need help in writing backup script | vishaltitre | Shell scripting | 4 | 23-05-2007 10:07 PM |
| require shell script | puppen | Shell scripting | 4 | 12-04-2006 09:42 PM |
| Shell Script dought | Mahesh | Shell scripting | 3 | 16-02-2005 12:13 PM |