in reply to find the shell inside a perl script
I would follow the other post but the if would be 1 rather than 3 different ifs.
Update: I now look smart as his post has been updated!if ($shell_name eq 'bash'){ # do stuff here }elsif($shell_name eq 'ksh'){ # do stuff here }elsif($shell_name eq 'csh'){ # do stuff here }
My sig Sucks!
In Section
Seekers of Perl Wisdom