[Top][All Lists]

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

Re: Running command to different screen

From: Buddy Burden
Subject: Re: Running command to different screen
Date: Thu, 20 Jul 2006 19:09:53 -0400
User-agent: Thunderbird (X11/20060713)


I am a little confused.

Since I am running bash, how would I use the 'at' and 'stuff' command to run
"df -h" in all my windows?

You need to look at the names of your windows (with ^A^W or ^A" or somesuch). If all the windows are named "bash", you can just substitute "bash" for "zsh" in the command line Phil gave you ... IOW, what he gave you isn't specific to zsh, that's just what his windows happen to be named.


For getting commands to run in shells inside screen, the screen command
you need to use is 'stuff'.  To run 'df -h', you'd use 'stuff "df -h ^J"'
where "^J" is a quoted control-J (or enter) character.  I couldn't manage
to get the ^J entered from screen's colon mode, though.

Just use "\015" instead.  That has always worked for me (and it's much easier 
to type).

                -- Buddy

reply via email to

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