sending to an xterm

Rich Healey healey.rich at gmail.com
Sat Aug 9 01:17:52 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kent Tenney wrote:
> Derek Martin <code <at> pizzashack.org> writes:
> 
>> On Fri, Aug 08, 2008 at 08:25:19PM +0000, Kent Tenney wrote:
>>> Howdy,
>>>
>>> I want to open an xterm, send it a command and have it execute it.
>> You can't do that.  xterm doesn't execute shell commands passed on
>> stdin...  It can, however, execute one passed on the command line.
>>
>> Instead of just running xterm, you can run "xterm -e 'cmd foo bar'"
>> where cmd is the program to run and foo and bar are its arguments.
>> The problem is that as soon as the program exits, xterm will exit
>> also.
>>
> 
> OK, I see that. 
> 
> (getting off topic)
> 
> any chance of keeping the xterm open after running the command?
> 
> Thanks,
> Kent
> 
xterm -hold -e "whatever"

> 
> 
> --
> http://mail.python.org/mailman/listinfo/python-list


- --
Rich Healey -              healey.rich at gmail.com
Developer / Systems Admin - OpenPGP: 0x8C8147807
MSN: bitchohealey at hotmail.com AIM: richohealey33
irc.psych0tik.net    -> #hbh #admins richohealey
irc.freenode.org     -> #hbh #debian PythonNinja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkidKIAACgkQLeTfO4yBSAclUwCg3uuvxxWHgZ/vqenrmaNIV/iE
ceQAn3e8oC6t0rTLtVhpeisujnqq8jlh
=4s8n
-----END PGP SIGNATURE-----



More information about the Python-list mailing list