How do I run an external system command on Windows?
noahspurrier at my-deja.com
noahspurrier at my-deja.com
Mon Sep 18 18:05:45 EDT 2000
More information about the Python-list mailing list
Mon Sep 18 18:05:45 EDT 2000
- Previous message (by thread): How do I run an external system command on Windows?
- Next message (by thread): How do I run an external system command on Windows?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Wait! I take it back, because os.system() does not return you the result as a string. You get the exit code, but all output is lost. I suppose I could redirect it to a file and then read it in, but that would not be much fun. I want the functionality of the commands module on UNIX <b>and</b> Windows NT -- Or even just WinNT! Now I can't figure out how to do it under Windows... But thanks anyway. Yours, Noah In article <8q5efg$b1e$1 at panix6.panix.com>, aahz at panix.com (Aahz Maruch) wrote: > In article <8q5d2b$la8$1 at nnrp1.deja.com>, <noahspurrier at my-deja.com> wrote: > > > >Does Python have something similar to Perl's "system" command or the `` > >(backtick operator)? This would preferably be something cross- platform. > >I need this to work on Windows NT Win2K) and UNIX (OpenBSD). > > os.system() > -- > --- Aahz (Copyright 2000 by aahz at pobox.com) > > Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/ > Hugs and backrubs -- I break Rule 6 > > The best way to get information on Usenet is not to ask a question, but > to post the wrong information. --Aahz > Sent via Deja.com http://www.deja.com/ Before you buy.
- Previous message (by thread): How do I run an external system command on Windows?
- Next message (by thread): How do I run an external system command on Windows?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list