From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 15:08:13 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FEFE1065672 for ; Fri, 24 Apr 2009 15:08:13 +0000 (UTC) (envelope-from ghirai@ghirai.com) Received: from ghirai.com (ghirai.com [195.74.52.87]) by mx1.freebsd.org (Postfix) with ESMTP id 4C0FD8FC1D for ; Fri, 24 Apr 2009 15:08:12 +0000 (UTC) (envelope-from ghirai@ghirai.com) Received: from localhost (localhost [127.0.0.1]) by ghirai.com (Postfix) with ESMTPSA id 8E34816FDE for ; Fri, 24 Apr 2009 16:08:05 +0100 (BST) Date: Fri, 24 Apr 2009 18:08:13 +0300 From: Ghirai To: freebsd-questions@freebsd.org Message-Id: <20090424180813.7e74cafb.ghirai@ghirai.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: /etc/crontab won't run my script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 15:08:13 -0000 Hi, I'm trying to get a python script to run from /etc/crontab, but it won't work. I've read about the most common issues being related to paths, but my script uses no paths at all. This is my /etc/crontab line: */5 * * * * munin /usr/local/bin/python /root/myscript.py >> /var/log/myscript.log I used munin user because i already have it (can i run it under 'nobody'?). This is what /var/log/cron says: Apr 24 18:00:01 triton /usr/sbin/cron[4361]: (munin) CMD (/usr/local/bin/python /root/myscript.py >> /var/log/myscript.log) However the script doesn't seem to run at all. Obviously it works if i run it stand-alone, as any user. I'm running 7.1-RELEASE-p4, i386. What am i doing wrong? Thanks. -- Regards, Ghirai.