WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to get screen to launch a script at boot?  (Read 1758 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
How to get screen to launch a script at boot?
« 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?



 

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: How to get screen to launch a script at boot?
« Reply #1 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?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: How to get screen to launch a script at boot?
« Reply #2 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

 :-\