|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
this program excuted under unix like this:
byob preview < test.txt >tmp.txt it takes input from stdin and output stdout. Please teach me how to excute it under python using os.execv. Thanks zhiqun |
|
#2
|
|||
|
|||
|
You wouldn't use os.execv, you'd use os.popen (or one of its family members) - http://www.python.org/doc/current/l...l#os-newstreams
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > how execute programs like this under python: byob -review<test.txt>tmp.txt |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|