FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General FutureQuest Hosting Support
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-05-2008, 08:27 AM   Postid: 170601
m3mary
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: May 2003
Posts: 208
crontab not working

hello
yesterday i tried crontab it was working but now not working
i want to use it in automatic copying + do backups
m3mary is offline   Reply With Quote
Old 10-05-2008, 12:56 PM   Postid: 170611
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,672
Re: crontab not working

Couple things:

1) There is no cronjob in the server for your username, which leads to #2

2) Whatever crontab file you are trying to inject has a syntax error:
Change: Mailto:<your_email_address>
to: MAILTO=<your_email_address>

Replace "<your_email_address>" with your email address and without the gator signs...
__________________
--
Terra
sysAdmin
FutureQuest, Inc.
http://www.FutureQuest.net
Terra is offline   Reply With Quote
Old 10-06-2008, 01:30 AM   Postid: 170637
m3mary
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: May 2003
Posts: 208
Re: crontab not working

for example im trying to test this
crontab -l
MAILTO=myemail@hotmail.com
24 * * * * zip -r zip.zip /big/dom/xuser/user/file.txt


this line (zip -r zip.zip /big/dom/xuser/user/file.txt) working fine without crontab.
but with crontab nothings happens
m3mary is offline   Reply With Quote
Old 10-06-2008, 01:40 AM   Postid: 170638
m3mary
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: May 2003
Posts: 208
Re: crontab not working

and also which time should i use :
Local Time
GMT/UTC Time
m3mary is offline   Reply With Quote
Old 10-06-2008, 01:51 AM   Postid: 170639
 Kevin
Systems Administrator
 
Kevin's Avatar
 
Join Date: Aug 2001
Location: Orlando, FL
Posts: 2,481
Re: crontab not working

1) You should use the server's local time. Use the date command to see what it is.

2) Put a path on the zip.zip so that zip will know where to put it.
__________________
Kevin
Kevin is online now   Reply With Quote
Old 10-06-2008, 02:02 AM   Postid: 170640
m3mary
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: May 2003
Posts: 208
Re: crontab not working

MAILTO=user@hotmail.com
24 * * * * zip -r /big/dom/xuser/user/zip.zip /big/dom/xuser/user/file.txt

not working also
m3mary is offline   Reply With Quote
Old 10-06-2008, 02:04 AM   Postid: 170641
 Kevin
Systems Administrator
 
Kevin's Avatar
 
Join Date: Aug 2001
Location: Orlando, FL
Posts: 2,481
Re: crontab not working

Are you getting an error message in your email?

Also, *:24 hasn't happened since I posted.
__________________
Kevin
Kevin is online now   Reply With Quote
Old 10-06-2008, 02:08 AM   Postid: 170642
m3mary
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: May 2003
Posts: 208
Re: crontab not working

nothing in email so i changed the email also but nothing
no errors no OK

Yesterday i got messages and it worked
m3mary is offline   Reply With Quote
Old 10-06-2008, 02:28 AM   Postid: 170644
 Kevin
Systems Administrator
 
Kevin's Avatar
 
Join Date: Aug 2001
Location: Orlando, FL
Posts: 2,481
Re: crontab not working

OK, I think I have this figured out...

I am pretty sure that it would have just worked if you hadn't changed the job 2 minutes early. Here is the server log:
Code:
2008-10-06 02:22:00.124690500 bcron-sched: Reloading 'm3mary'
2008-10-06 02:24:00.126648500 bcron-sched: Warning: Ignoring unparseable line: '* 24 * * * zip -r /big/dom/xm3mary/m3mary/zip.zip /big/dom/xm3mary/m3mary/file.txt'
Note that at 02:22 you changed it from "24 *" to "* 24". "24 *" meant run it at 24 minutes past each hour. A time that didn't happen during the time it was set that way. "* 24" on the other hand would mean 24:00 which is not a valid time (midnight is 0:00).
__________________
Kevin
Kevin is online now   Reply With Quote
Old 10-06-2008, 02:31 AM   Postid: 170645
 Kevin
Systems Administrator
 
Kevin's Avatar
 
Join Date: Aug 2001
Location: Orlando, FL
Posts: 2,481
Re: crontab not working

And I see you have now changed it to "12 *" which means run at 12 minutes past each hour.

Also, you may as well use /usr/bin/zip instead of zip just to make sure every possible issue is covered.
__________________
Kevin
Kevin is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 06:55 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.