[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running a command in all screens
From: |
Phil!Gregory |
Subject: |
Re: Running a command in all screens |
Date: |
Fri, 10 Dec 2004 13:04:45 -0500 |
User-agent: |
Mutt/1.5.6+20040907i |
* Kevin <address@hidden> [2004-12-09 15:07 -0500]:
> I'd like to be able to run a command ( source ~/.profile for example )
> in all my screens at once... is this possible?
Yes. Use the 'at' command.
I'm assuming that you want to send the text "source ~/.profile" to all of
the programs you have running in screen. The command to do that would be
'at "#" stuff "source ~/.profile"'. (I'm not sure how to get a newline
out of 'stuff'--perhaps someone else can comment on this.) Note that this
will run that command in *every one* of your windows. If you only want a
subset of the windows, they need to have some unique thing in common, such
as their window title. If they were all named "zsh", for instance, you
could use 'at "zsh#" stuff "source ~/.profile"'.
--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
Abel had been dead for a couple of hours now. But he was starting to feel
better.
-- "Imperfect Hosts", Neil Gaiman
---- --- --