#1  
Old 25th March 2007, 18:17
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 3 Times in 3 Posts
Default cron jobs again

Hi al there I need a bid of help again.

With the help of this forum I know that if I want to set an cronjob I must use
Code:
crontab -e
.

If I follow my script I must put in crontab this line
Code:
*/10 * * * * lynx --dump http://www.mydomain.nl/scripts/admin/cronjobs.php  > /dev/null
but that doesn't seems to work.

Can I put a direct link to my script something like this?
Code:
*/10 * * * /root/ispconfig/php/php /var/www/web4/web/scripts/admin/cronjobs.php > /dev/null
this one isn't working also but I just guest the code, I used the existing crontab and used the path to my script.

Any body an idee to get my script up and running??

TIA DaRKNeSS
__________________
Updating my server to Debian Squeeze, so here I go again...
Reply With Quote
Sponsored Links
  #2  
Old 25th March 2007, 19:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,982 Times in 3,903 Posts
Default

i) Does it work if you execute:

lynx --dump http://www.mydomain.nl/scripts/admin/cronjobs.php

if yes, set the complete path to lynx in the crontab. You can find the path by executing:

which lynx
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th March 2007, 21:13
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 3 Times in 3 Posts
Default

Going to try that Till. I will let you know what happend.
__________________
Updating my server to Debian Squeeze, so here I go again...
Reply With Quote
  #4  
Old 25th March 2007, 21:52
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 3 Times in 3 Posts
Default

I have tryed this
Code:
*/10 * * * * usr/bin/lynx --dump http://www.mydomain.nl/scripts/admin/cronjobs.php  > /dev/null
But it isn't working some other sugestions??
__________________
Updating my server to Debian Squeeze, so here I go again...

Last edited by DaRKNeSS666NL; 25th March 2007 at 22:05.
Reply With Quote
  #5  
Old 25th March 2007, 22:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,982 Times in 3,903 Posts
Default

It must be:

/usr/bin/lynx

and not

usr/bin/lynx

If a path does not have the / in front, it is a relative path and what we need here is the absolute path.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 26th March 2007, 20:56
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 3 Times in 3 Posts
Default

First of all thanks again Till for trying to help me out.

The last sugestion didn't work also so again I am stuck.
Can't I point to the script directly for example
Code:
*/10 * * * * /usr/bin/lynx --dump /var/www/web4/web/scripts/admin/cronjobs.php > /dev/null
I also noticed that in the example cron from the script the "&" isn't there at the end. In the cronjobs from ISPConfig there is an "&".

DaRKNeSS
__________________
Updating my server to Debian Squeeze, so here I go again...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig cron jobs mphayesuk General 3 30th August 2009 11:15
cron jobs per user arrn Feature Requests 19 13th June 2008 08:20
I am looking for a web interface calendar overview of cron jobs comedit Installation/Configuration 4 24th August 2006 00:21
Cron Jobs and root emails Jcorrea920 General 1 26th April 2006 19:53
How to disable the shell cron jobs? raymov General 3 1st November 2005 04:43


All times are GMT +2. The time now is 21:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.