screen-users
[Top][All Lists]
Advanced

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

Re: How can I execute a command in a detached screen?


From: Software Groups
Subject: Re: How can I execute a command in a detached screen?
Date: Tue, 20 Sep 2005 00:38:04 -0400

you need to use stuff command.

try this


screen -p 0 -X eval 'stuff ls\015'

This works for me.
-SR

On 9/19/05, Jim C. <address@hidden> wrote:
> I do the following:
> 
> address@hidden bin]$ screen -dm
> address@hidden bin]$ screen -ls
> There is a screen on:
>        22539..mirage   (Detached)
> 1 Socket in /tmp/uscreens/S-sdn20.
> 
> address@hidden bin]$ screen -S 22539..mirage -X exec "/bin/ls -l"
> address@hidden bin]$
> 
> ...but when I re-attach the screen there is no evidence to show that the
> command executed.
> I've been pouring over the man pages and I cannot discern the proper
> syntax for this.
> 
> Clue please?
> 
> Jim C.
> 
> 
> 
> _______________________________________________
> screen-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/screen-users
> 


-- 
Software Groups (SFG)
http://www.sfgroups.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]