[SunHELP] su - <user> -c myscript.sh losing args...

Hanson, Mark sunhelp at sunhelp.org
Wed May 23 18:46:05 CDT 2001


I have a sh script that I'm trying to run via:

su - <user> -c myscript.sh <args>

For some reason it seems to lose the arguments during the su. An example test script would be:

!#/bin/sh

#echo number of args
echo $#

EOF

Does anyone know why this happens and/or have a solution? I have to run the script via su.

Thanks!

-Mark



More information about the SunHELP mailing list