Trying to configure a cron job for fetch.pl. When the jobs runs I get the following error from cron.d (root email):
"Your terminal lacks the ability to clear the screen or position the cursor."
Then it goes through and shows that it got everything but the page is never updated. However, running fetch.pl manually works perfect.
The file in cron.hourly reads:
#!/bin/sh
/home/httpd/cog/news/fetch/fetch.pl
Fairly straight forward... :) I'm sure it's something silly that I just can't see... The fetch.pl file is fairly simple and in original format - no mods-
Thanx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry about the slow reply I was on holiday for easter!
I don't see why it is not working, it looks like it is sh though. The best fix would probally be to delete the file from cron.hourly and add a new line like this to the crontab (crontab -e)
10,40 * * * * /home/httpd/cog/news/fetch/fetch.pl
That should work fine as sh isn't involved
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-07-09
I had a similar problem to Rick on my RedHat 6.2 system. I think the environment table wasn't properly set or something so I had to insert in manually.
My crontab now reads:
10,40 * * * * export TERM=vt100; /home/httpd/cog/news/fetch/fetch.pl
Now it works ok. You may want alter your script Rick. Hope this helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Trying to configure a cron job for fetch.pl. When the jobs runs I get the following error from cron.d (root email):
"Your terminal lacks the ability to clear the screen or position the cursor."
Then it goes through and shows that it got everything but the page is never updated. However, running fetch.pl manually works perfect.
The file in cron.hourly reads:
#!/bin/sh
/home/httpd/cog/news/fetch/fetch.pl
Fairly straight forward... :) I'm sure it's something silly that I just can't see... The fetch.pl file is fairly simple and in original format - no mods-
Thanx
Sorry about the slow reply I was on holiday for easter!
I don't see why it is not working, it looks like it is sh though. The best fix would probally be to delete the file from cron.hourly and add a new line like this to the crontab (crontab -e)
10,40 * * * * /home/httpd/cog/news/fetch/fetch.pl
That should work fine as sh isn't involved
I had a similar problem to Rick on my RedHat 6.2 system. I think the environment table wasn't properly set or something so I had to insert in manually.
My crontab now reads:
10,40 * * * * export TERM=vt100; /home/httpd/cog/news/fetch/fetch.pl
Now it works ok. You may want alter your script Rick. Hope this helps.