Subject: Re: How can something started in rc.local have a controlling terminal
To: netbsd-help@netbsd.org, <brucem@cat.co.za>
From: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
List: netbsd-help
Date: 09/10/2000 23:08:45
In article <200008311058.MAA07258@suninfo1.wirtschaft.bos-muenchen.de> you wrote:
> Question: how do I get the process to run every time the system starts up,
> and still have access to a controlling terminal? Is it possible to
> re-establish a connection with a controlling terminal.

I'd try to start it within screen. That way you won't clutter
the console, and monitor the command from remote. 

Something like this should work:

miyu% cat >/tmp/s
screen 0 top
^D
miyu% screen -md -c /tmp/s
miyu%

After that you can reattach to the screen session with "screen -r".
You can put the  screenrc-file (/tmp/s) into /etc or so - 
I think you get the ideal.


 - Hubert


 - Hubert