Registering Cron using CronTab

G

gurcharan.saini

Hi

I'm developing a Django application which is running on Apache. We
need to add crontab from the Python script and we are using Python
CronTab package <http://pypi.python.org/pypi/python-crontab/0.7> for
this.

I'm stuck with the issue - if we execute the code from Apache the
crontab is not getting updated, while it get updated if we run it from
Django in-built webserver.

Does anyone have any idea why this is happening.

I'm on Ubuntu.

Thanks

Gurcharan
 
P

Philip Semanchuk

Hi

I'm developing a Django application which is running on Apache. We
need to add crontab from the Python script and we are using Python
CronTab package <http://pypi.python.org/pypi/python-crontab/0.7> for
this.

I'm stuck with the issue - if we execute the code from Apache the
crontab is not getting updated, while it get updated if we run it from
Django in-built webserver.

Sure sounds like a permissions problem to me.
 
L

Lawrence D'Oliveiro

Philip said:
Sure sounds like a permissions problem to me.

Same here. Note that you can run a CGI under its owning user in Apache with
the suexec feature. That might give you the permissions you need.
 
G

gurcharan.saini

Same here. Note that you can run a CGI under its owning user in Apache with
the suexec feature. That might give you the permissions you need.

Thanks, will go through the docs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top