screen-users
[Top][All Lists]
Advanced

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

Re: new window


From: Buddy Burden
Subject: Re: new window
Date: Mon, 08 Nov 2004 12:57:27 -0500
User-agent: Mozilla Thunderbird 0.8 (X11/20040917)

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




reply via email to

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