[CentOS] screen detatch

Tue Jul 22 18:07:16 UTC 2008
David Mackintosh <David.Mackintosh at xdroop.com>

On Tue, Jul 22, 2008 at 06:07:44PM +0100, Luciano Rocha wrote:
> > The man page for screen says that I can create a detatched screen 
> > running with a set command in it by doing this:
> > 
> > $ screen -dm $command
> 
> screen -dm isn't the same as screen -d -m. Try the latter.

Figured it out.

While the first line of my shell script is

#!/bin/tcsh

...I am in fact a bash user.  One of the things my script is
ultimately trying to do is to start multiple things from within
the screen session by use of teh screen command itself; because
of the shell swap, $STY doesn't seem to be getting set.  If I
change the first line of my script to be #!/bin/bash, it works
as expected.

Thanks for looking.

-- 
 /\oo/\
/ /()\ \ David Mackintosh | 
         dave at xdroop.com  | http://www.xdroop.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20080722/fd5d4fc3/attachment-0005.sig>