It is currently Sat Sep 25, 2021 10:15 am


The forum is READ ONLY. Please direct any future discussions to our Facebook page


 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: Problems with CronTab
PostPosted: Tue Jan 15, 2008 11:04 am 
Trial
Trial

Joined: Tue Jan 15, 2008 10:57 am
Posts: 2
Welll hi there guys, realy like yer work over here...
So i have a big problem , on install, there was said to use this :
*/5 * * * * /usr/bin/wget --tries=1 --timeout=10 --post-data 'admin_password=mypassword&game_number=0' -q -o /dev/null -O /dev/null http://mylink.com/scheduler.php


Or incase if above cron isnt working to use :
*/5 * * * * /usr/bin/lynx http://mylink.com/scheduler.php?encoded=a6a2a5b5c6a28ac6c5cedde0c0d4c6d4d4ebe1d3c8a2969aa9a8939b9787c8d5dfc6c3d3d6ced6d7d3a195 > /dev/null


But im using Redhat linux, and i dont know whats the problem withh it, cuz the sys gives me an error :
[root@localhost ~]# crontab -u root /tmp/root.xxxx.swp
"/tmp/root.xxxx.swp":1: premature EOF
errors in crontab file, can't install.


Offline
 Profile  
 
 Post subject: Re: Problems with CronTab
PostPosted: Wed Jan 16, 2008 10:57 pm 
Site Admin
Site Admin
User avatar

Joined: Wed Feb 19, 2003 12:17 pm
Posts: 2619
You try using something like webmin? It makes my life easier on the command line side. PJ might have an idea though.


Offline
 Profile  
 
 Post subject: Re: Problems with CronTab
PostPosted: Thu Jan 17, 2008 12:31 am 
Developer
Developer
User avatar

Joined: Wed Feb 19, 2003 6:07 pm
Posts: 2930
I think whatever editor you used corrupted the file you are using to store the cron tabs. That error means it expects there to be more data when the file is being read but it ends before it should.

Like Tarnus said if you can use Webmin you should it makes managing cron tabs so much easier. If you can't then delete that cron tab file and create another one using a different text editor.



_________________
PJ's Annoyingly Useless Blog
ADOdb Lite
Template Lite
Offline
 Profile  
 
 Post subject: Re: Problems with CronTab
PostPosted: Thu Jan 17, 2008 5:06 am 
Trial
Trial

Joined: Tue Jan 15, 2008 10:57 am
Posts: 2
hmmm, but , i just copied from the web to the server, thats odd, i dont understand RedHat completly but ill try...


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron