Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: coreplayer2 on July 19, 2012, 10:38:50 PM

Title: How to get screen to launch a script at boot?
Post by: coreplayer2 on July 19, 2012, 10:38:50 PM
Would like to launch a script in screen on core in text mode at boot but...   

Launching this from bootlocal.sh

Code: [Select]
screen -t local 0 /home/tc/myscript.sh
results in "Must be connected to a terminal" error on boot.

Ok makes sense  I think, needs a terminal up already.  but there is one. ?

Anyone intimate with screen have any ideas please?



 
Title: Re: How to get screen to launch a script at boot?
Post by: tinypoodle on July 20, 2012, 04:20:34 AM
Perhaps you could look into invoking 'openvt' and e.g. open a VT on tty3 to run screen on?
Title: Re: How to get screen to launch a script at boot?
Post by: coreplayer2 on July 20, 2012, 07:24:59 PM
Thanks, am thinking about that now..

Only thing is, if I open a screen at the prompt, no problem.  Well other than not being able to run anything in the VT, so I figure there has to be some simple procedure that I'm completely overlooking..

Have researched screen online, yet it's a complete mystery

 :-\