Hi,
Does anyone know how could I find the name of a shell script from itself ?
I was trying
PGM_NAM=`basename ${0} .sh`
The only issue with that I think is when the shell script is scheduled via the at command or crontab. In such situations the value of PGM_NAM will be ksh or other shell.
Any thoughts
Thanks
philipose
Does anyone know how could I find the name of a shell script from itself ?
I was trying
PGM_NAM=`basename ${0} .sh`
The only issue with that I think is when the shell script is scheduled via the at command or crontab. In such situations the value of PGM_NAM will be ksh or other shell.
Any thoughts
Thanks
philipose