Hello, I have added a Python script to crontab. The script does not work from crontab (only through manual operation), and I receive a message through the mail:
Code:
From root@xxxxxx.hosted.by.stagnom.com Sat Dec 14 07:09:00 2013
Return-Path: <root@xxxxxx.hosted.by.stagnom.com>
Received: from xxxxxx.hosted.by.stagnom.com (localhost [127.0.0.1])
by xxxxxx.hosted.by.stagnom.com (8.14.5/8.14.5) with ESMTP id rBE790ZY001131
for <root@xxxxxx.hosted.by.stagnom.com>; Sat, 14 Dec 2013 07:09:00 GMT
(envelope-from root@xxxxxx.hosted.by.stagnom.com)
Received: (from root@localhost)
by xxxxxx.hosted.by.stagnom.com (8.14.5/8.14.5/Submit) id xxxxxxxx;
Sat, 14 Dec 2013 07:09:00 GMT
(envelope-from root)
Date: Sat, 14 Dec 2013 07:09:00 GMT
Message-Id: <201312140709.xxxxxxxx@xxxxxx.hosted.by.stagnom.com>
From: root@xxxxxx.hosted.by.stagnom.com (Cron Daemon)
To: root@xxxxxx.hosted.by.stagnom.com
Subject: Cron <root@xxxxxx> cd /usr/path && python script.py
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
python: not found