[Tutor] crontab or python mistake

Yi Qiang yi at yiqiang.net
Fri May 26 06:44:57 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel McQuay wrote, On 05/25/2006 09:24 PM:
> Traceback (most recent call last):
>  File "/root/scripts/boxster_school_smtp.py", line 19, in ?
>    mssg = open('mssg.txt', 'r').read()
> IOError: [Errno 2] No such file or directory: ' emmssg.txt'
> </snip>
Right, but I don't think the CWD for cron is in /root.  Try giving it an
absolute path.

- --
Yi Qiang (yi at yiqiang.net)
Web: http://www.yiqiang.net
Tel: (206) 661-8469
PGP: 0xB515564B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEdofJtXlIMrUVVksRAhZOAJ9Gr8RPjS37u7IEaLdZMJjawvxMDgCghTCm
ub7rd1v+rrEAt2vTIpnwk4A=
=xhDj
-----END PGP SIGNATURE-----


More information about the Tutor mailing list