I have a perl script that calls ps -ef
somewhere in the code. This script works in Linux but not in Solaris 5.10. My work around is to define an alias in my .profile:
ps_wrapper()
{
if [[ $1 = "-ef" ]]; then
/usr/ucb/ps auxwwww
else
/usr/ucb/ps $1
fi
}
alias ps=ps_wrapper
The problem is the alias is not available in the perl script. How can I get the script to see this alias?