screen detatch

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



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

However, it doesn't work.  Screen exits without creating the detached
screen.  

If I say 

$ screen $command

...I get dropped into a screen session running $command as I would 
expect.

What's the magic invocation I'm missing?

Also, the next step will be for root to launch said screen session as
someone else during boot time; am I asking for trouble by trying it?

# su - user -c screen -dmS $Label $command

Thanks for any insights or pointers to web resources I can use to
learn from.  
-- 
 /\oo/\
/ /()\ \ David Mackintosh | 
         dave@xxxxxxxxxx  | http://www.xdroop.com

Attachment: pgpm1epolkjkB.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