Re: open a shell prompt froma python program

2008-10-31 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], gaurav kashyap wrote: konsole: cannot connect to X server Could be it's not being passed the right DISPLAY setting. Is this under the same username, so it's automatically using the right xauth settings? -- http://mail.python.org/mailman/listinfo/python-list

open a shell prompt froma python program

2008-10-30 Thread gaurav kashyap
Dear all, Can u tell me a python program that when executed in a shell prompt,opens another shell prompt. Simply i want to open a shell prompt from a python program. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: open a shell prompt froma python program

2008-10-30 Thread Lars Stavholm
gaurav kashyap wrote: Dear all, Can u tell me a python program that when executed in a shell prompt,opens another shell prompt. Simply i want to open a shell prompt from a python program. I think you're looking for: import os os.system(/bin/sh) --

Re: open a shell prompt froma python program

2008-10-30 Thread gaurav kashyap
On Oct 30, 2:59 pm, Lars Stavholm [EMAIL PROTECTED] wrote: gaurav kashyap wrote: Dear all, Can u tell me a python program that when executed in a shell prompt,opens another shell prompt. Simply i want to open a shell prompt from a python program. I think you're looking for: import

Re: open a shell prompt froma python program

2008-10-30 Thread Diez B. Roggisch
gaurav kashyap wrote: On Oct 30, 2:59 pm, Lars Stavholm [EMAIL PROTECTED] wrote: gaurav kashyap wrote: Dear all, Can u tell me a python program that when executed in a shell prompt,opens another shell prompt. Simply i want to open a shell prompt from a python program. I think you're

Re: open a shell prompt froma python program

2008-10-30 Thread gaurav kashyap
HI, I am getting the following error: konsole: cannot connect to X server do i need to install the related files. -- http://mail.python.org/mailman/listinfo/python-list

Re: open a shell prompt froma python program

2008-10-30 Thread [EMAIL PROTECTED]
On Oct 30, 11:53 am, gaurav kashyap [EMAIL PROTECTED] wrote: HI, I am getting the following error: konsole: cannot connect to X server do i need to install the related files. Do you have an x-server running? I assume so, because you have a terminal window opened. If you became root using

Re: open a shell prompt froma python program

2008-10-30 Thread Derek Martin
On Thu, Oct 30, 2008 at 03:53:52AM -0700, gaurav kashyap wrote: HI, I am getting the following error: konsole: cannot connect to X server do i need to install the related files. Maybe, but given that error message, probably not. You would do yourself a great favor by providing a lot more

Re: open a shell prompt froma python program

2008-10-30 Thread Grant Edwards
On 2008-10-30, Derek Martin [EMAIL PROTECTED] wrote: On Thu, Oct 30, 2008 at 03:53:52AM -0700, gaurav kashyap wrote: HI, I am getting the following error: konsole: cannot connect to X server do i need to install the related files. Maybe, but given that error message, probably not. You

Re: open a shell prompt froma python program

2008-10-30 Thread Derek Martin
On Thu, Oct 30, 2008 at 02:47:48AM -0700, gaurav kashyap wrote: Simply i want to open a shell prompt from a python program. If this is literally true, then you just need to figure out what command will open a terminal window from the shell prompt. Once you figure that out, it's as simple as: