Re: bug using 'screen -X' and feature request
Sadrul Habib Chowdhury <[email protected]> Fri, 21 Nov 2008 11:28:51 -0500
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <20081121162851.GA17357__34442.3213661232$1238089143$gmane$org@localdomain> |
* 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