[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [screen-devel] bug using 'screen -X' and feature request
From: |
Sadrul Habib Chowdhury |
Subject: |
Re: [screen-devel] bug using 'screen -X' and feature request |
Date: |
Fri, 21 Nov 2008 11:28:51 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* Guyzmo had this to say on [21 Nov 2008, 17:01:58 +0100]:
[snip]
>
> I tried using -p'.', guessing the window number (but if the user does
> ^ac it will be wrong)... And I am now out of solutions to make it work.
>
> So here am I with a feature request: how hard would it be to either :
> - find a way to return the created window number when command 1/ is
> executed (either using the environment, or sending it to stdout)
You can give the window name as a parameter to '-p' too. I believe that
will help solve the issue for you.
> - execute a sequence of commands like this one :
> "screen -X 'screen -t %s %s ; exec ::: python %s %s' % (title,
> command, script_path, dbus_id)
> so the exec command is sent to the newly created window.
Try using 'eval'.
Cheers,
Sadrul