Hi,
I have upgraded to python 2.6 and was getting depreciation warnings
about os.popen3 etc so I changed over to subprocess.
os.popen3('nohup %s/core/kmotion_hkd2.py &> /dev/null &' % kmotion_dir)
becomes ..
subprocess.Popen('nohup %s/core/kmotion_hkd2.py &> /dev/null &' %
kmotion_dir, shell=True)
all is well except I now get
nohup: appending output to `nohup.out'
on the terminal which '&> /dev/null' used to ditch to /dev/null. I
think this is because subprocess simulates the
shell differently. Any idea how to ditch to /dev/null in subprocess ?
Cheers
Dave
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor