python + linux + cron = problem
jorn at spekter.no
Thu Apr 27 06:31:31 EDT 2000
I've posted this earlier but noone replied so I'm trying again
I have this small program which includes the following line og code:
mounts = commands.getoutput('df | grep eggum | cut -d 1 -f 1 | cut -d /
this runs fine from the commandline but when run as a cronjob I get the
File "/usr/lib/python1.5/commands.py", line 42, in getoutput
File "/usr/lib/python1.5/commands.py", line 53, in getstatusoutput
sts = pipe.close()
IOError: (10, 'No child processes')
The use of pipes seems to be the trouble here.
Any help on how the get around this would be greatly appreciated.
More information about the Python-list