|Subject:||Re: Running command to different screen|
|Date:||Thu, 20 Jul 2006 20:26:49 -0400|
> I am a little confused.
> Since I am running bash, how would I use the 'at' and 'stuff' command to
> "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).
|[Prev in Thread]||Current Thread||[Next in Thread]|