Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

whenever I try to run

crontab -e

I'm getting errors such as:

no crontab for banana - using an empty one
/tmp/crontab.oeFm1e: Invalid argument

Is there any way to edit / install the file?

share|improve this question

2 Answers 2

I'm curious as to what the error is about... I wonder what's being found invalid.

Anyways... You simply say "unix"... so I'm kinda guessing here.. but they're generally the same when it comes to crontab user files...

The user crontab file(s) are usually kept in /var/spool/cron/crontabs.

You'll need to be root to tamper with things in there though, and it's best not done by hand... Grues live there.

Check your log messages to see if anything more were logged concerning the "invalid argument" problem.

You might also try editing banana's crontab as root...

sudo crontab -u banana -e

You might have better luck.

(I love that word... Bananananananana (I never know when to stop!) )

share|improve this answer

It looks like you do not have an active cron file for that user.

To list a user crontab, if one exists:

crontab -l

Create a plain text file with the cron commands, then install it using:

crontab file.txt

To find out if there is a root crontab this will list it:

sudo crontab -l

If the root crontab exits then to edit it:

sudo crontab -e

If it does not exist, then create a plain text file and install:

sudo crontab file.txt
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.