ts-7000
[Top] [All Lists]

[ts-7000] Re: Auto..Run

To:
Subject: [ts-7000] Re: Auto..Run
From: "naturalwatt" <>
Date: Fri, 13 Jun 2008 18:46:56 -0000
--- In  "LaksCEO" <> wrote:
>
> Hi Martin,
> 
> 
> 
> >mcp:3:respawn:/root/starter > /root/starter.log 2>&1
> >wdt:3:once:/root/watchdog > /tmp/watchdog.log 2>&1
> what are these files?
> What should i write in these two files?
> -laks
>

/root/starter and /root/watchdog are two programs that I wrote that perform the 
processing I need in my application.

They write messages to standard output and standard error.  When run from 
/etc/inittab, 
if you don't capture the output, it will be lost for ever.  So I redirect the 
output into log 
files with meaningful names.

You don't write anything in those files.  If your program is called myprogram 
and is /bin, 
the line would be like this:

laks:3:/bin/myprogram > /tmp/myprogram.log 2>&1

The first field is just a unique identifier. The second field is the run level. 
 Man inittab will 
help.

Martin


------------------------------------

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