Re: screen detatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx  | http://www.xdroop.com

Attachment: pgpSYuazUZ3rn.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux