Slinging OS commands arround like Perl.

David Williams (dwwillia@iucf.indiana.edu)
Sat, 26 Feb 1994 21:10:17 -0500 (EST)

Is there anyway to sling OS commands around in Python like you can with the
following constructs under Perl:

open(FINGER,"finger dwwillia@cyclops|");

and

print `finger dwwillia@cyclops`;

I saw the posix module pipe and system commands, but even after looking
at my man pages, it wasn't clear to me how this can be done. Also, I
hope that it is as easy to do as it is in Perl.

I am not trying to cause a Perl/Python battle. Just trying to get a feel
for the language using what I already know about another language.

Thanks!

David Williams, IUCF UNIX support Compute free or die!
dwwillia@indiana.edu Algorithm patents bite.
http://cs.indiana.edu/hyplan/dwwillia.html Join the revolution, use Linux.