ok someone please explain popen to me it runs subproccesses does this mean it can run programs from within my program? any help would be appreciated , there is not an easily spottable place that explains this. Thanks
ret801
-9
Light Poster
Recommended Answers
Jump to PostUsually now a days recommended way is normally subprocess, there is also nice code snippet from gribouillis easying the use: A Command class to run shell commands.
Jump to PostThese two code examples will illustrate the purpose and meaning of Popen ...
# save this code as calendar_may_2011.py import calendar calendar.prmonth(2011, 5)
... now run this code ...
# calendar_may_2011_popen.py # Popen (Pipe open) will open the 'pipe' containing the # standard output …
All 6 Replies
TrustyTony
888
pyMod
Team Colleague
Featured Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
ret801
-9
Light Poster
ret801
-9
Light Poster
ret801
-9
Light Poster
hondros
25
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.