--- On Fri, 28/8/09, Kenneth Gonsalves <[email protected]> wrote:

> From: Kenneth Gonsalves <[email protected]>
> Subject: Re: [Ilugc] why is my cron not working
> To: "ILUG-C" <[email protected]>
> Date: Friday, 28 August, 2009, 5:03 PM
> On Friday 28 Aug 2009 4:45:16 pm
> Kenneth Gonsalves wrote:
> > > For cron normally error message will be directed
> to mail. Look at root's
> > > mail.
> >
> > now I am getting mail to root: '/bin/sh: planet.py:
> command not found'
> 
> solved in both boxes. For apachectl:
> 
> cd /usr/sbin; ./apache2ctl restart
> 
> and for planet
> 
> 0,5,10,15,40,41,50,51,52,57 * * * * cd /home/ilugc/planet/;
> ./planet.py 
> examples/fancy/config.ini >> ./planet.log;
> 
> apparently cron is totally brain dead and needs to be
> spoonfed
Cron only executes the command as the user, it doesn't run .profile, 
.bash_profile etc., So it has no way of getting $PATH etc.

Raman.P
blog:http://ramanchennai.wordpress.com/



      See the Web&#39;s breaking stories, chosen by people like you. Check out 
Yahoo! Buzz. http://in.buzz.yahoo.com/
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to