debugging crontab

Uwe Kiewel ml at kiewel-online.ch
Mon Apr 20 08:42:13 UTC 2009


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

Christoph Höger wrote:
> Am Sonntag, den 19.04.2009, 22:57 +0200 schrieb Uwe Kiewel:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Christoph Höger wrote:
>>> Hi folks,
>>>
>>> I've got a problem with my offlineimap setup under f11 (under f9 and f10
>>> it works well):
>>>
>>> I have: 
>>> */5 * * * * DISPLAY=:0.0 /usr/bin/offlineimap -u Gnome.GnomeUI /dev/null
>>> 2>&1 #JOB_ID_1
>>>
>> Is there a ">" missing between Gnone.GnomeUI and /dev/null in your command?
>>
>> In an ober case remove the output redirection to /dev/null. Cron will
>> generate an email with the output of the cronjob.
> 
> Yeah, I did that. But the stdout and stderr do not provide useful
> information. So basically I need a way to figure out what's different
> between a cron invokation and a manual call of python.
> Any ideas?
> 
I the past I have had a simmilar problem. The job was running fine at
cmd line but failed at cron. So, the problem was the cron environment,
e.g. library path, general path, etc.

Loot at the full mail header of a cron email and search for X-Cron lines
to check.

HTH,
	Uwe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ7DVlAAoJEEJXG7BUuynn/48P/icUoeJQDsh0WwlG7XPGNsao
+UL814Rv14tpvtvQjVq9YGw5WQcqY2FaH3oVrwjeQV6uAFjxDPbyg3Kgey17QBFm
OOBAMDuOVN0jUaLCiTIiBg4J6ehO9maHtpB6Uc9FbHn/l27d9s+zV2QH34NUjtxz
/M6YZLXoVAzzBOfKbb/qxHtZqj2bHVhKrYiXKSjx3odpIMX6wfHGU0OLziW5jes2
2Zw9j6Xbuuq025kHGItH0beogiWpC/ztULyZV/8Vufy79GvKZwMUIgy/qMCo6ZVr
SWIFgCZzB/9JAx58cT/z8Z41fM34FRs68TuLE5SYQhm693kbogPU+L9FnLaN25I1
XXItUu2ZVILYV5cJMRrNM0ucCy6N/011WC04Bt+U5Qm/ohhJ/dvEuhV+SY6wnpd1
5XNdBt4vX8iFR7ZqxjWPC1DNC4peLoZt88r/hD/xAunBnr6GzQB4jI2sP5+9lx7g
d0G5FvYFX0r46xTos+2phi6d/9XIt3KX1pK1aVe2FTTXvkM60Pr4W8oikXD28R5C
3Szc4WCYNoyDmxCyh5RJ+igjShz7hxuXx+gEcoD974IERc7MaYLnJz0GZ3ODObmB
uMiuD5CJcC3T9EFdDOuu8Z+DIPvDACQq04P189i6ZBZH5aSNn3rDPna3tU3x16zB
5bScABD4lBX5Rf1JUneQ
=KnRm
-----END PGP SIGNATURE-----




More information about the fedora-devel-list mailing list