Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Python
Equivalent of system()?
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Max
#1
Equivalent of system()?
Feb 23 '08, 04:45 AM
Is there a Python equivalent of C++'s system()?
TIA
Grant Edwards
#2
Feb 23 '08, 05:05 AM
Re: Equivalent of system()?
On 2008-02-23, Max <maxh.is.here@g mail.comwrote:
Is there a Python equivalent of C++'s system()?
The closest thing is probably system().
It's in the os module.
--
Grant
Comment
Post
Cancel
Jeff Schwab
#3
Feb 23 '08, 05:05 AM
Re: Equivalent of system()?
Max wrote:
Is there a Python equivalent of C++'s system()?
More or less. You probably want subprocess.Pope n:
>>import subprocess
>>subprocess.Po pen("echo hello", shell=True)
hello
<subprocess.Pop en object at 0x2ab8f3665d10>
404 Not Found
http://docs.python.org/lib/node533.html#CHILD_LINKS
Comment
Post
Cancel
Max
#4
Feb 23 '08, 05:05 AM
Re: Equivalent of system()?
Thanks for the help!
Comment
Post
Cancel
subeen
#5
Feb 23 '08, 08:15 AM
Re: Equivalent of system()?
This link may help:
http://love-python.blogspot.com/2008...in-python.html
On Feb 23, 10:44 am, Max <maxh.is.h...@g mail.comwrote:
Is there a Python equivalent of C++'s system()?
>
TIA
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment