On Mon, 26 Apr 2010, rodriguezromain62 wrote:
> Hello everybody, I have a problem with a script.
>
> My script is executed when Linux boot on the TS7800
>
> #!/bin/sh
>
> ifconfig eth0 192.168.0.2
> /home/PROGRAMMES/FORTORMASK 0000
> /home/samples/LETbi >/dev/null 2>&1 &
> /home/samples/readDIOOutMSG >/dev/null 2>&1 &
> /home/samples/seriemsg /dev/ttts5 9600 >/dev/null 2>&1 &
>
> But only ifconfig and the first programm is executed.
> The other 3 program have a for(;;) so i do >/dev/null 2>&1 &
>
> But my 3 programs dont run :'(
> why ?
Do you programmes "daemon"ise themselves? Check out
man 3 daemon
You may be able to use the daemon programme to daemon'ise your pregs too,
see
man 1 daemon
It is useful to read up on what daemon, both of them, do.
I use the daemon(3) in all programmes I write that I want to run from start
up - I add an option to prevent daemon'isation for debuggin from the shell.
> (I put my script in init.d and make a link in rc3.d)
>
> when I launch my script after linux has boot, its work... Help me please !!
> thanks
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|