|
|
#1 (permalink) | ||
|
Deal Addict
![]() ![]() ![]() ![]() ![]() |
Hi there, I've been stressing on such a small issue for the past couple hours, and I fail to see what i've done wrong.
Code:
*/1 * * * * /home/chris/.xchat2/xchatlogs/cron.pisg --silent I load the cronjob, by going to the folder where the cron job is, and type crontab crontab1 as that's the file name of the cron job. when I type crontab -l to make sure it's running, it also is there. any help would b greately appreciated. |
||
|
|
|
| Sponsored Links - Join the RedFlagDeals.com community and remove this ad. |
|
|
#5 (permalink) | ||
|
Member
![]() ![]() ![]() Join Date: Dec 24th, 2002
Posts: 321
|
Are you getting error? Can you find anything specific in the cron log that points to a problem? Was the application launched at all? Are you able to run the exact command manually? Would cron launch the application if you scheduled it to run at a specific time?
|
||
|
|
|
|
|
#6 (permalink) | ||
|
Deal Addict
![]() ![]() ![]() ![]() ![]() |
Quote:
[QUOTE=h2o-;5813506]I would do that to see if that runs @ 5pm, then troubleshoot for something else. Tried that, fast fowarded the time to 5, and it didn't work
|
||
|
|
|
|
|
#7 (permalink) | ||
|
Deal Addict
![]() ![]() ![]() ![]() ![]() Join Date: Nov 27th, 2003
Posts: 1,323
|
You need to get rid of the --silent (if that is a comment line, use the # symbol).
If you want it to goto a log file, you need to pipe it out: 00 17 * * * /home/chris/.xchat2/xchatlogs/cron.pisg > /home/chris/.xchat2/xchatlogs/cron.pisg.mylogfile 2>&1 |
||
|
|
|
|
|
#8 (permalink) | ||
|
Member
![]() ![]() ![]() Join Date: Dec 24th, 2002
Posts: 321
|
Quote:
If it is, try to schedule run of a simple command such as 'date > /home/chris/date.txt'. |
||
|
|
|
|
|
#9 (permalink) | ||
|
Deal Addict
![]() ![]() ![]() ![]() ![]() Join Date: Jul 30th, 2002
Location: Alberta
Posts: 2,350
|
Change it to
PHP Code:
oh, I am assuming you've already checked obvious things like cron daemon is running and command is correct. If it is incorrect, you should get error output. Last edited by siriuskao; Oct 24th, 2007 at 11:59 AM.. |
||
|
|
|
|
|
#11 (permalink) | ||
|
Deal Addict
![]() ![]() ![]() ![]() ![]() |
Urgh, nope. Still not working. An application that is run in terminal is allowed to be set up to run every minute, as a cron job correct? I mean, If I could get the txt to output the date as easily as I just did, then I fail to see why I can't get my cronjob to run the program.
|
||
|
|
|
|
|
#12 (permalink) | ||
|
Member
![]() ![]() ![]() Join Date: Dec 24th, 2002
Posts: 321
|
Quote:
|
||
|
|
|
![]() |
| Thread Tools | |
|
|
| Canadian Coupons Deals Features Freebies Forums Retailer Ratings Marketplace Credit Card Comparison Computer Price Comparison |

Join a community of over 200,000 bargain hunters from all across Canada. As a member you can post comments, ask questions, and share deals, coupons, and freebies! Best of all, signing up is free!