Is it possible to write a program that you pipe other programs through
and it measures the MBs per second of data moved? Like I could pipe it
a cp and find out how fast the cp is working?
Thanks,
Nate
___
Tutor maillist - Tutor@python.org
http://mail
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey guys,
I'm practically still a beginner with python. I am working on a program
that originally I used popen for but then switched to pexpect because it
was easier for me to understand.
I was hoping someone could help me get this working:
I do a:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Anyone have any recomendations? Seems like it is giving it the
passwords since it finishes cleanly,
but maybe not like I think?
Nate
Nathan McBride wrote:
> Hey guys,
>
> I'm practically still a beginner with python. I am workin
Why don't you just use 'commands.getoutput'?
-Original Message-
From: linuxian iandsd <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2008 3:12 PM
To: tutor@python.org
Subject: Re: [Tutor] how to get response from os.system()
use os.popen("your cmd here")
On Sun, Mar 16, 2008 at 8:06 PM, Luk
Would you mind perhaps show an example running an interactive command like su
and show how to send input to the commands waiting propmts?
-Original Message-
From: linuxian iandsd <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2008 3:17 PM
To: tutor@python.org
Subject: Re: [Tutor] how to get
Yup I use the pexpect module for a lot however couldn't get 'pexpect.run' to
work with mysqldump piping to gzip
-Original Message-
From: Jeff Younker <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2008 6:59 PM
To: Nathan McBride <[EMAIL PROTECTED]>
Cc: tutor@pyt
That's a great tip I'll have to save than.
-Original Message-
From: Martin Walsh <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2008 9:38 AM
To: Nathan McBride <[EMAIL PROTECTED]>
Cc: tutor@python.org
Subject: Re: [Tutor] how to get response from os.system()
Hi N
That's a great tip I'll have to save than.
-Original Message-
From: Martin Walsh <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2008 9:38 AM
To: Nathan McBride <[EMAIL PROTECTED]>
Cc: tutor@python.org
Subject: Re: [Tutor] how to get response from os.system()
Hi N
That's a great tip I'll have to save than.
-Original Message-
From: Martin Walsh <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2008 9:38 AM
To: Nathan McBride <[EMAIL PROTECTED]>
Cc: tutor@python.org
Subject: Re: [Tutor] how to get response from os.system()
Hi N
That's a great tip I'll have to save than.
-Original Message-
From: Martin Walsh <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2008 9:38 AM
To: Nathan McBride <[EMAIL PROTECTED]>
Cc: tutor@python.org
Subject: Re: [Tutor] how to get response from os.system()
Hi N
I've used pexpect for a few projects and love it. Basically pexpect
lets you spawn a program and interact with it from code like you
yourself were running it in a console. How would you send the ctrl key?
nomb
___
Tutor maillist - Tutor@python.org
h
I'm thinking more along the lines as of running a program, sending tab
to get to the field send text to put on the field, tab, send text ?
On Sun, 2008-03-23 at 14:00 -0500, mwalsh wrote:
> Kent Johnson wrote:
> > Nathan McBride wrote:
> >> I've used pexpect fo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey guys,
I'm pretty tired of the lame backup solution we have at work.
Could anyone point me to a (more or less newbieish) example of how to
have python open a socket on one box and get data from it, then have another
box write to it over the network
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Alan Gauld wrote:
> "Nathan McBride" <[EMAIL PROTECTED]> wrote
>
> Hi Nathan,
>
> Please don't reply to an existing message to start a new discussion.
> It messes up those of us using threaded mail/news readers a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey Guys,
I have a program that uses the loop devices. However I originally was
finding the free one with:
'losetup -f'. Which returns the next free loop device. :D However, I
found that some of the other distros
have a version of losetup that does
dded it to the end of "/dev/loop_". The
only other thing I had to do was put a
check in incase there were no used loop devices in which case then it
defaults to "/dev/loop0".
Works like a charm. :D
Nate
bob gailer wrote:
> Nathan McBride wrote:
>> -BEGIN PGP SIGN
16 matches
Mail list logo