my script:
----------------------------------------------------------------------------------------------
#!/bin/bash -x
#=====================================================================
#PATH=/usr/local/bin:/usr/bin:/bin
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin
# ----------------------------------------------------
DATE=`date +%Y-%m-%d` # Datestamp e.g 2002-09-21
DOW=`date +%A` # Day of the week e.g.
Monday
DNOW=`date +%u` # Day number of the week
1 to 7
where 1 represents Monday
DOM=`date +%d` # Date of the Month e.g. 27
M=`date +%B` # Month e.g January
W=`date +%V` # Week Number e.g 37
/usr/local/bin/php /opt/local/intranet/hds/core/send_emails.php >
/tmp/hds_mantis_mails.txt
root crontab:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * *
/etc/cron.d/send_mantis_mails.sh
hope this can help
What does your /etc/cron.d/send_mantis_emails.sh script look like?
Mine is rather simple. Running on Debian:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * www-data [ -x /usr/bin/php ]
&& [ -f /usr/share/mantis/core/send_emails.php ] && /usr/bin/php
/usr/share/mantis/core/send_emails.php | grep -v -E "^(Sending
emails...|Done.)"
I'm still on the 1.1.x branch (sigh, 1.2 release, where art thou?)
Steph
Francisco Mancardi wrote:
Hi:
I know that probably this is more a system problem that a mantis one,
but i need help
if I run script manually ( /etc/cron.d/send_mantis_mails.sh ) everything
is OK
but if I try using cron I've got this on my mail:
From r...@localhost.localdomain Mon Sep 14 12:28:00 2009
Date: Mon, 14 Sep 2009 12:28:00 +0200
From: r...@localhost.localdomain (Cron Daemon)
To: r...@localhost.localdomain
Subject: Cron <r...@giunone> * /etc/cron.d/send_mantis_mails.sh
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
/bin/sh: Mysql.files: command not found
any hint ?
regards
Francisco
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
mantisbt-help mailing list
mantisbt-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
mantisbt-help mailing list
mantisbt-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
mantisbt-help mailing list
mantisbt-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-help