Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - /sbin/tinit won't start some programs: (3 Items)
   
/sbin/tinit won't start some programs  
I'm trying to use tinit and /etc/config/ttys to start up a program after bootup. I added a line to ttys giving the 
serial port and path name to my program, but it wouldn't run. In debugging, I've reduced the problem to its barest bones
. In the following ttys file, i'd expect "df" to be run over and over again:

ser1 "/bin/sh" qansi-m on
ser2 "/bin/df" qansi-m on

I get the sh running on ser1, but nothing on ser2. When I reverse the ser1 and ser2, I get sh on ser2 as expected, but 
nothing on ser1.  Why is this?

-Jeff
Re: /sbin/tinit won't start some programs  
Weird...

In the ttys file I posted, I found out that the Momentics text editor doesn't add a line termination unless you CR to 
the next line!  That is, if your file is like

a
b
c|

with the vertical line representing the cursor, you'll find a newline between a and b, but not between b and c.  You 
have to do this:

a
b
c
|

I've never seen this before. In vi, for example, the cursor sits on the last line, not below it.

Anyway, tinit was barfing on the last line, not starting the process up.

-Jeff
Re: /sbin/tinit won't start some programs  
Sorry, I misspoke. You'll find one between a and b, and between b and c, but not following c. The newline char is not 
added unless you open a new, blank line below c.

-Jeff