Re: Starting screen from logon script

2012-09-27 Thread David T. Pierson
On Tue, Sep 25, 2012 at 12:30:55PM +0100, Another Sillyname wrote: > Is there a way to start the screen -x root/Master session and still > allow this calling script to finish? It sounds like you want the `exec' shell builtin, which you can use like: exec screen -x root/Master http://www.gnu.or

Starting screen from logon script

2012-09-26 Thread Another Sillyname
Hi I have an embedded device that I want to start screen during an ssh logon. I have the following script. #!/bin/sh SCREENRUNNING=`pgrep SCREEN` if [ -z "$SCREENRUNNING" ]; then echo "Screen not running so let's start the Master session sleep 2 screen -dmS Master sleep 2