If I want to write this command to a file, would this be the right format?
*********************************
import subprocess
(all my variables defined okay)
perl_script=subprocess.call(['perl',perl_prog,ipfile,cmd,user,timeout,])
log=open('/tmp/pythonOutput.txt',w)
log.write(subprocess.call(perl_script))
*********************************
The program runs (and outputs stuff on the screen okay), but when I
"cat /tmp/pythonOutput.txt", nothing is there.
(While I'm not waiting for the entire program to run across all the IP
addresses, I would think that something would be go out into that log
file.)
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor