screen is one of the coolest underrated unix utility. If you have not heard of it, or don't know enough about it, check out the excellent intro here. The tutorial is meant for Gentoo Linux, but is general enough for all *nix distro.
One of the things missing in the tutorial is, if after working in screen for a while, if you want to send a command to all windows, say a new export DISPLAY command, how to go about it.
Simple:
Press Ctrl-A :
The screen command window should be highlighted at the bottom.
At the ":" prompt, type
at "#" stuff "export DISPLAY=localhost:0.0\015"
That is all! The \015 is used if you don't want to go through the pain of pressing enter at each of the windows...if you would rather press enter manually, just take that off. If you look at the command, you see that "#" can be pretty much replaced with window numbers to execute commands at only certain windows. You will have to dig into manuals for more info....
Subscribe to:
Post Comments (Atom)
2 comments:
Mani,
Just to let you know there is a pretty detailed screen tutorial at http://gentoo-wiki.com/TIP_Using_screen
-Jeff
thanks for the great tip !! gotta love gnuscreen
Post a Comment