kraduk at googlemail.com
Thu Feb 4 09:25:55 UTC 2010
On 3 February 2010 15:49, Lowell Gilbert <
freebsd-questions-local at be-well.ilk.org> wrote:
> Nadir Aliyev <nadir at ultel.net> writes:
> > Hello friends.
> > I have interesting situation with cron.
> > I created a
> > simple script for process monitoring:
> > #!/usr/local/bin/bash
> > processname=`/bin/ps aux | /usr/bin/grep -v grep |
> > /usr/bin/grep -c 'maintenance_jobs.php'`
> > if [ $processname -le "0" ];
> > then
> > echo "`/bin/date` > JOB WAS DEAD. RESTARTED!" | mail -s "ATTENTION"
> > my at email.net;
> > /usr/local/bin/php
> > /usr/local/www/web/bin/maintenance_jobs.php then" is not interpretated
> > shell when i run this script from cron.
> > I tried it on sh and bash. Result
> > is same.
> > But this script worked on pre 8 versions.
> The script got wrapped and apparently cut off.
> I can't understand it, and probably nobody else could either.
> Lowell Gilbert, embedded/networking software engineer, Boston area
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
double check everything in your environment and make sure its there in the
More information about the freebsd-questions