I tried both suggestions without any success. Is there a way to monitor what is happening?Message: 6
Date: Mon, 20 Aug 2007 17:22:56 +0100
From: Andy Green
Subject: Re: rc.local
To: For users of Fedora
Message-ID: <46C9BFE0.3030505@xxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1
Somebody in the thread at some point said:
> How do I run a program from rc.local
>
> I have:
> su regularUser -c "cd /home/me/folding; ./FAH504-Linux.exe >/dev/null &"
>
> Nothing happens. I see nothing in the logs. Is there a way to trace this
Maybe
nohup su regularUser -c "cd /home/me/folding; ./FAH504-Linux.exe
>/dev/null " &
will work better... because your & is inside the quotes I think it
finishes with the su action after spawning the background process and
then kills the background process because the su exited.
-Andy
------------------------------
Message: 7
Date: Mon, 20 Aug 2007 11:23:42 -0500
From: Justin W
Subject: Re: rc.local
To: For users of Fedora
Message-ID: <46C9C00E.1080306@xxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
edwarner99@xxxxxxxxx wrote:
> How do I run a program from rc.local
>
> I have:
> su regularUser -c "cd /home/me/folding; ./FAH504-Linux.exe >/dev/null &"
>
> Nothing happens. I see nothing in the logs. Is there a way to trace
> this down?
> Thanks,
I'm guessing that rc.local is being run in a shell, which once it is
closed, kills any child processes. You should probably look into the
nohup program (http://en.wikipedia.org/wiki/Nohup might be useful). As
to where the nohup should be place, though, is a question I can't
answer. It might be placed before the `su` or maybe before the
`./FAH504-Linux.exe`. Someone else will need to help you with that
(maybe just try both...?).
Justin W
------------------------------
Got a little couch potato?
Check out fun summer activities for kids.