[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spawning commands inside interactive shells in new windows in a scri
Re: Spawning commands inside interactive shells in new windows in a scriptable fashion
Thu, 24 Jul 2008 00:44:09 +0300
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:126.96.36.199) Gecko/20080512 Thunderbird/188.8.131.52 Mnenhy/0.7.5.0
In a console based text editor( I use vim) you can press on following three
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 did not know
László Monda demis ki::
(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?
On Tue, 2008-07-22 at 09:10 +0100, address@hidden wrote:
I don't know if this will help you but I have a small script that will
start up folding at home in a running screen session. Here is the
basis of it
$ cat screen.scpt
screen -S desktop4 -X screen -t t1
screen -S desktop4 -p t1 -X stuff 'cd /^M'
screen -S desktop4 -p t1 -X stuff 'ls ^M'
screen -S desktop4 -X screen -t t2
screen -S desktop4 -p t2 -X stuff 'cd programming^M'
screen -S desktop4 -p t2 -X stuff 'file *^M'
It will open a new screen called 't1', select it, cd to / and ls it,
then another called 't2' move into my programming folder and do a
'file' on the content.
It seems like this might be the basis for what you need?
On 22/07/2008, László Monda <address@hidden> wrote:
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
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 du /
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
screen-users mailing list