Further, is this send_mail.py a web2py controller or a regular python
script ? Asking because I see you have it in your controllers dir and
if it IS a controller, you should use a different syntax.

@anand: the unix crontab should contain the username which executes
the command, that's where the 'root' is coming from

On Sep 14, 4:02 am, Harshit dubey <[email protected]> wrote:
> I am making a  Courier Management Portal for my collage using  web2py
> and in doing so i had to run a background process that will run a
> function at regular interval of time , So i am using cron for that ,
> But it does not seem to work
>
> It shows an error code 127
>
> Content of crontab file is as follows
>
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> #crontab
> 0 * * * * root python /home/harshit/Harshit/Sem3/SSAD/web2py/
> applications/trial2/controllers/send_mail.py
>
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> where my pyhton command is
>
> python /home/harshit/Harshit/Sem3/SSAD/web2py/applications/trial2/
> controllers/send_mail.py
>
> So please help me
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to