Anyone know how to get crontab to work?

Anyone know how to get crontab to work?

Posted by: _Rich_
Posted on: 2006-01-23 05:06:00

I just signed up and can't believe the huge void in documentation regarding ther server configs. No wonder their support is knee-deep in tickets. :-)

When I run:

'crontab ~/cronjobs' I get:

crontabs/tmp.rDwGRW: Permission denied

Anyone know what's up with that?

('cronjobs' is owned by me and is rw)

Thanks!




Re: Anyone know how to get crontab to work?

Posted by: matttail
Posted on: 2006-01-23 09:11:00

I think you're passing the command incorrectly. You want to take the text file cronjob and import it as the cron file, correct? if that's the case, then just type:
crontab cronjobs


If not, please explain what you're trying to accomplish.



-Matttail

Re: Anyone know how to get crontab to work?

Posted by: jamuraa
Posted on: 2006-01-25 09:34:00

I'm having a problem too, no matter if I use the command with a file or calling it via `crontab -e`.

crontab: installing new crontab
crontabs/tmp.sXoabN: Permission denied
crontab: edits left in /tmp/crontab.Ce34zb/crontab



Re: Anyone know how to get crontab to work?

Posted by: matttail
Posted on: 2006-01-25 16:20:00

Try just putting "MAILTO:whatever@example.com" (without quotes) into your cront tab, and see if that works. So, in more detail you'd:

Connect via SSH / Telnet
type: crontab -r
type: MAILTO:whoever@example.com
press Ctrl and O at the same time
press Ctrl and X at the same time

If you still get an error with that as your only thing in the crontab, then you should contact support becuase something not set up right.

If you don't get an error, then there's something wrong with your command, and perhaps you can post it here to see if someone knows what's wrong.



-Matttail

Re: Anyone know how to get crontab to work?

Posted by: RetroJames
Posted on: 2006-01-31 06:07:00

I am having issues as well attempting to add a cron job for our aw stats install -

http://wiki.dreamhost.com/index.php/AWStats_Installation

http://wiki.dreamhost.com/index.php/Crontab

Output ------------------------------------------------------------------

[SERVER]$ crontab -e
no crontab for [SITE] - using an empty one
UW PICO(tm) 4.9 File: /tmp/crontab.ycSlKV/crontab

0 3 * * * perl
/home/.emmy/[SITE]/awstats/tools/awstats_buildstaticpages.pl
-config=[SITE].com -update
-awstatsprog=/home/.emmy/[SITE]/awstats/awstats.pl
-dir=/home/.emmy/[HOME DIR]/[SITE].com/[DIR]


[ Wrote 5 lines ]

crontab: installing new crontab
"/tmp/crontab.ycSlKV/crontab":1: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit?

Output ---------------------------------------------------------------

Re: Anyone know how to get crontab to work?

Posted by: matttail
Posted on: 2006-02-01 04:29:00

that command must appear on one line. It's on five right now, so cron think's it's five seperate commands. remove any line breaks and make sure it's not auto wrapping.



-Matttail

Re: Anyone know how to get crontab to work?

Posted by: VxJasonxV
Posted on: 2006-02-10 07:08:00

Or add a to the end of every line that should be connected to the next.

Tags: crontabtmptickets