I am "root" and I am running perlscript (so running as root), and I want to switch user (su) to another user, and spawn a shell program.
My best attempt is, but it is not spawning my myshellprogram, but it is sending & as a parameter into the myshellprogram instead.
`su - user1 /home/myshellprogram &`;
I am willing to accept answer in anyforms:
exec, system, or backticks