ts-7000
[Top] [All Lists]

[ts-7000] Re: Reading from file during boot

To:
Subject: [ts-7000] Re: Reading from file during boot
From: "chemostereman" <>
Date: Fri, 30 Oct 2009 22:27:06 -0000

--- In  "chemostereman" <> wrote:
>
> Hello all,
> 
> I have a program called keypad.x stored in my root directory. This program 
> reads information from a file called commands.txt. 
> 
> I created a runlevel 3 script so the process could be put in the background 
> during boot and stored it in the /etc/init.d/ and made a soft link to the 
> rc3.d folder.
> 
> #!/bin/sh
> /root/keypad.x &
> 
> I can run the program if I log into the board, and I can also run the program 
> from startup in the back ground if I do not read from commands.txt
> 
> I have changed the permission of the file to chmod 777, 666 etc and I am 
> using getc to read from the file. The file is important because it is a save.
> 
> When I log into the box via telnet and run ps -x i do not see the process and 
> if I use the serial bus I can see the the startup script is hanging only when 
> I use the verison of keypad.x that reads from the file.
> 
> I have also tried to change the ownership via chown.
> 
> Any help?
>

Never mind just put an absolute reference in keypad.x /root/commands.txt



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

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