screen-users
[Top][All Lists]
Advanced

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

Re: Spawning commands inside interactive shells in new windows in a scri


From: Gokdeniz Karadag
Subject: Re: Spawning commands inside interactive shells in new windows in a scriptable fashion
Date: Tue, 22 Jul 2008 14:33:44 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080512 Thunderbird/2.0.0.14 Mnenhy/0.7.5.0

You can use this in your screenrc, opens 4 windows, sets titles, first one is interactive and selected.

screen -t shell
screen -t ls
stuff "ls\015"
screen -t du
stuff "du /\015"
screen -t script
stuff "my-script\015"
select 0

László Monda demis ki::
On Thu, 2008-07-17 at 12:40 -0400, Mark Eichin wrote:
looks like you might want to use "stuff" to push the commands at a
normal screen that has a shell open (so that it runs them, and stays
interactive.)

I don't think that "stuff" is capable of what I want to do.  I basically
want to write a script, like:

new-screen-window ls
new-screen-window du /
new-screen-window my-script

Where the new-screen-window utility opens new screen windows without
jumping to them.  I'd also like to specify the title of the individual
windows.



------------------------------------------------------------------------

_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users




reply via email to

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