Re: Pexpect and a Linux Terminal

2007-12-26 Thread [EMAIL PROTECTED]
On 25 déc, 15:49, [EMAIL PROTECTED] wrote: > On Dec 25, 8:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Yes it's work ! :-D > > > > >

Re: Pexpect and a Linux Terminal

2007-12-25 Thread prikar20
On Dec 25, 8:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > Yes it's work ! :-D > > > > I use prompt = '.*#' to detect the prompt expect. Tha

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Yes it's work ! :-D > > > I use prompt = '.*#' to detect the prompt expect. Thank you for you'r > > help ! > > > Vive Python et TK :-D > > I have another proble

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Yes it's work ! :-D > > > I use prompt = '.*#' to detect the prompt expect. Thank you for you'r > > help ! > > > Vive Python et TK :-D > > I have another proble

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yes it's work ! :-D > > I use prompt = '.*#' to detect the prompt expect. Thank you for you'r > help ! > > Vive Python et TK :-D I have another probleme, not directly from Pexpect() function. There is my code : from Tkinter impor

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
Yes it's work ! :-D I use prompt = '.*#' to detect the prompt expect. Thank you for you'r help ! Vive Python et TK :-D -- http://mail.python.org/mailman/listinfo/python-list

Re: Pexpect and a Linux Terminal

2007-12-24 Thread Michael Bentley
On Dec 24, 2007, at 7:06 PM, [EMAIL PROTECTED] wrote: > hello, > > I'm new in Python and i would like to use Pexpect to execute a root > command (i want to mount via a Pyhton script a drive) > > so that's my script for the moment : > > from os import * > import pexpect > import os > cmd1="su -" >

Re: Pexpect and a Linux Terminal

2007-12-24 Thread Karthik Gurusamy
On Dec 24, 6:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hello, > > I'm new in Python and i would like to use Pexpect to execute a root > command (i want to mount via a Pyhton script a drive) > > so that's my script for the moment : > > from os import * > import pexpect > import os > cm

Pexpect and a Linux Terminal

2007-12-24 Thread [EMAIL PROTECTED]
hello, I'm new in Python and i would like to use Pexpect to execute a root command (i want to mount via a Pyhton script a drive) so that's my script for the moment : from os import * import pexpect import os cmd1="su -" cmd2="mount -o loop /home/user/my.iso /mnt/disk" pwd="mypassword" child = p