Re: Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-23 Thread László Monda
Seems like I'm just ready with new-screen-window which I've just attached. From now on we can easily do things, like: new-screen-window new-window-title 'du -h /' Thanks for David for kicking ass with his way of doing this and for Gokdeniz for explaining me the newline issue. Possible improvemen

Re: Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-23 Thread Gokdeniz Karadag
In a console based text editor( I use vim) you can press on following three keys; ctrl v enter This will embed a literal newline into the file, tested with the given script. I'm not sure about embedding newlines with GUI editors. By the way, David's suggestion was very helpful, I realized I d

Re: Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-23 Thread László Monda
Hi David, (David has allowed me to reply to his email publicly.) I think this is almost exactly what I need, but "^M" gets literally quoted for me, just like as "\^M" or "\015". How can I put new line characters in there? Thanks! On Tue, 2008-07-22 at 09:10 +0100, [EMAIL PROTECTED] wrote: > I

Re: Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-22 Thread Gokdeniz Karadag
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 Eich

Re: Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-21 Thread László Monda
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

Re: Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-17 Thread Mark Eichin
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.) ___ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users

Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-17 Thread László Monda
Hi List, I've already sent this mail to the list some days ago, but seeing the archives it seems to me that it hasn't arrived, so I resend it this time. I want to open new windows that run specific commands within interactive shells in a scriptable fashion. Let's say I want to run `du --max-dept

Spawning commands inside interactive shells in new windows in a scriptable fashion

2008-07-17 Thread László Monda
Hi List, I want to open new windows that run specific commands within interactive shells in a scriptable fashion. Let's say I want to run `du --max-depth=1 /` in a new screen window within an interactive shell and I want to do it from a script. Let's consider the following: $ screen screen bash