Message250053
| Author |
steve.dower |
| Recipients |
bhou, larry, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware |
| Date |
2015年09月07日.04:19:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1441599594.32.0.53531544379.issue25005@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
To be more specific, with patch 1 applied:
subprocess.call("start file a&b>x", shell=True)
is equivalent to typing the following at a command prompt:
start file a & b > x
That is, "start file a" and then do "b", redirecting the output from "b" to a file named "x".
With the change to os.startfile, we can write it as this:
os.startfile("file", "open", "a&b>x")
Which matches what we intended above. (startfile implies "start <first argument>", and passes the third argument to the launched program without modification.) |
|