ts-7000
[Top] [All Lists]

Re: [ts-7000] problem scrip init.d <ts7800>

To:
Subject: Re: [ts-7000] problem scrip init.d <ts7800>
From: Jim Jackson <>
Date: Mon, 26 Apr 2010 21:38:49 +0100 (BST)


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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU