in reply to find the shell inside a perl script
if ($shell_name eq 'bash'){ # do stuff here }elsif($shell_name eq 'ksh'){ # do stuff here }elsif($shell_name eq 'csh'){ # do stuff here } [download]