Cron problems with pipes
Jørn Eilertsen
jorn at spekter.no
Fri Apr 14 04:59:48 EDT 2000
Hi,
I have this little program which includes the following line og code:
mounts = commands.getoutput('df | grep eggum | cut -d 1 -f 1 | cut -d /
-f 4')
this runs fine from the commandline but when run as a cronjob I get the
following error:
File "/usr/lib/python1.5/commands.py", line 42, in getoutput
return getstatusoutput(cmd)[1]
File "/usr/lib/python1.5/commands.py", line 53, in getstatusoutput
sts = pipe.close()
IOError: (10, 'No child processes')
Any help on how the get around this would be greatly appreciated.
Thanks,
Jorn
More information about the Python-list
mailing list