-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
su user -c command
If you are running it as an rc script, you'll probably want to use su
for the fetchmail command, since init scripts run as root anyway. I'm
not sure if what you're doing is the best way to go about things though...
Also, I would be
sudo
Cheers
Gavin
On 1/2/06, Mike Esquardez <[EMAIL PROTECTED]> wrote:
>
> Hello, I am trying to make a script that runs the following commands. This
> is difficult for me because I dont know how to switch users. Currently
> these
> are the commands that I am trying to script.
>
> # fetchmail –d
Hello, I am trying to make a script that runs the following commands. This
is difficult for me because I dont know how to switch users. Currently these
are the commands that I am trying to script.
# fetchmail d 1000 & (this needs to be run as username mik)
# su -l root
# /home/mik/myfilter & (