Using only certain cron jobs
Permalink
Just needed some help here, I did a bit of searching, came up with cron jobs being able to use only certain jobs via url additions, the problem is that I don't find it working.
I used this how-to:
http://www.concrete5.org/documentation/how-tos/developers/how-to-ru...
And I have a cron job set to run every minute with this command:
lynxhttp://**********.com/index.php/tools/required/jobs?auth=##########... >/dev/null 2>&1
This is for the e-mail checking for replies. It is job3, and I thought that the >/dev/null 2>&1 at the end should disable e-mails, though I'm still getting those (help there would be nice).
Now the problem I'm getting is that all of the jobs are running, and I really don't care to have my site re-indexed every minute.
I used this how-to:
http://www.concrete5.org/documentation/how-tos/developers/how-to-ru...
And I have a cron job set to run every minute with this command:
lynxhttp://**********.com/index.php/tools/required/jobs?auth=##########... >/dev/null 2>&1
This is for the e-mail checking for replies. It is job3, and I thought that the >/dev/null 2>&1 at the end should disable e-mails, though I'm still getting those (help there would be nice).
Now the problem I'm getting is that all of the jobs are running, and I really don't care to have my site re-indexed every minute.
wait, so do you want to disable emails? or what? (also 1 minute seems a bit short)
It will be a rather small user base, so checking for e-mail replies every minute should be fine for me.
And yes, wanting to disable the confirmation e-mail for it by sending it to the null folder.
Still doesn't answer the question overall though - I need to have this use only job 3, but it is doing all of the jobs instead, so it seems to be ignoring the jID=3 query.
And yes, wanting to disable the confirmation e-mail for it by sending it to the null folder.
Still doesn't answer the question overall though - I need to have this use only job 3, but it is doing all of the jobs instead, so it seems to be ignoring the jID=3 query.
I just tested adding &jID=3 on mine and its only running that job, and thats not going to disable the confirmation email, thats only so It doesn't log to file if anything is echo'ed
I'm still having trouble that it's running all of the jobs...
Attempting now with jHandle instead.
Edit: Still, doing all of the jobs. There must be a way to do this...
Attempting now with jHandle instead.
Edit: Still, doing all of the jobs. There must be a way to do this...
Ok, finally figured it out - needed to escape the & in the cron...
For anybody else having the trouble:
I also changed this from lynx to wget, and used the -q command to stop the output.
wget -qhttp://*******.com/index.php/tools/required/jobs?auth=#############...
The ampersand (&) needs the \ before it so it attaches it as part of the URL, not part of the command.
For anybody else having the trouble:
I also changed this from lynx to wget, and used the -q command to stop the output.
wget -qhttp://*******.com/index.php/tools/required/jobs?auth=#############...
The ampersand (&) needs the \ before it so it attaches it as part of the URL, not part of the command.
ah, I assumed you were using crontab,
I probably should have mentioned that - using cpanel's cron job.