Re: Python or 4NT? With a question or two about popen()

From: Jaime Wyant (programmer.py_at_gmail.com)
Date: 09/13/04


Date: Mon, 13 Sep 2004 07:56:21 -0500
To: python-list@python.org

At the risk of being labeled a heretic, I'm gonna suggest cygwin. In
particular, the bash shell is really well suited for running
"automated" CLI tests. Be aware though that bash syntax is really
cryptic and if you don't use it a lot, you'll find yourself thumbing
through the manual quiet a bit.

If you do decide to do bash, do a google on "advanced bash tutorial".
That ought to point you to a really nice tutorial.

HTH,
jw

On 12 Sep 2004 16:52:51 -0700, Robin Siebler
<robin.siebler@palmsource.com> wrote:
> I have a bunch of command line tests that I need to automate. I've
> run into too many bugs with the default Win2k command shell, so I need
> to either purchase 4NT or handle the logic and output processing with
> Python. I'm looking for experiences, comments, problems, etc.
>
> Also, I'm trying to figure out how to use popen(). To say that the
> documentation and expamples available for this is sparse would be the
> understatment of the century! I know that I want to use popen4() but
> what is the difference between os.popen4(), win32pipe.popen4() and
> popen2.popen4()(did I miss any?)?
>
> And how, exactly, do I *use* popen4()? I figured out how to use
> popen(), but I haven't been too successfull with popen(). A good
> example would really come in handy! I have *5* Python books and not
> one has an example for anything other than popen()!
>
> Robin L. Siebler
> Software Test Engineer
> PalmSource
> ---------------------------------------
> Homer Simpson: But every time I learn something new, it pushes out
> something old! Remember that time I took a home wine-making course and
> forgot how to drive? Marge: That's because you were drunk! Homer
> Simpson: And how!
> --
> http://mail.python.org/mailman/listinfo/python-list
>



Relevant Pages

  • Re: Convert 08 to decimal 8
    ... bash shell. ... i'm not sure how using bash (others have explained much ... better than i) but in korn shell you could use typeset: ... syntax errors. ...
    (comp.unix.shell)
  • Re: Convert Bash shell script to Korn shell script
    ... > The following bash script works fine to delete all files that are ... To execute this script, ... Start a bash shell: ... run the command "which find" ...
    (comp.unix.shell)
  • Re: Text over multiple lines
    ... > Write a Python script. ... you need my patched Bash which can be found at ... > You need to patch the Bash shell, ...
    (comp.lang.python)
  • Mangled 9.1 system
    ... I discovered that any bash shell ... The X interface seems to still work - but any xterm opened just hangs ... - but still bash hangs with no prompt. ...
    (alt.os.linux.suse)
  • Re: Bash examples and exercises book
    ... I found "Learning the Bash Shell" pretty usefull. ... Depends on your background I suppose, if you already have some scripting ... book with examples and exercises. ...
    (comp.unix.shell)