2 of 2 people found this helpful
if you put something in single quotes, doesn't that prevent the parameter expansion by the shell ? so a literal $1 is being passed in instead of the expanded variable ?
That IS indeed the reason Bill. No doubt about it. What he could do to avoid this is use eval if he wants to keep the quotes as is:
COMMAND_LINE="su - appworx -c '/usr/bin/perl /var/tmp/abcd.pl $1'"
Thanks Yanick and Bill!!
It worked for me :-)