logo       

Re: new window: msg#00050

gnu.screen.user

Subject: Re: new window

Neszt,

screen -t title_of_window_0 0 bash, df -k, finger

screen -t title_of_window_0 0 bash -c 'df -k;finger;exec bash'

Alternatively (assuming we're talking about a .screenrc here as opposed to just typing at screen's colon prompt), you could use the stuff command:

screen -t title_of_window_0 0 bash
stuff "df -k\015"
stuff "finger\015"

Of course you could jam it all into one "stuff" if you prefer, but I usually break it up by commands. The advantage here would be that you do more than just run commands:

screen -t notes
stuff "vi ~/notes\015"
stuff "Go\033!!date\015ZZ"

Although one thing I _haven't_ ever been able to make work is something like:

screen -t neptune ssh neptune
stuff "mysecretpassword\015"

and if anyone knows how to make that happen, I'd sure appreciate it.


-- Buddy


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise