M>> Hi list.
M>> Well, my subject says it all.
M>> I need to run a process during startup time and to have someone else
M>> then root as the pid owner.(so he can kill it later).
M>> 
M>> How can i do that ?
M>> Usually i put commands in the rc.local file, but as i know the process
M>> will be own by root.(or am i mistaken?)

Try this:

su user <<END
command1
command2
command3
END

commands will be executed as "user".

-- 
[EMAIL PROTECTED]      \/  There shall be counsels taken
Stanislav Malyshev      /\  Stronger than Morgul-spells
phone +972-3-9316425    /\              JRRT LotR.
http://sharat.co.il/frodo/      whois:!SM8333



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to