Crontab is a short form of cron table. It is a configuration file that specifies shell commands to run periodically on a given schedule.

learn more… | top users | synonyms

1
vote
3answers
289 views

cannot access crontab with sudo after being added to /etc/sudoers list

My user "craig" is in the /etc/sudoers file on my CentOS 5.6 VM, however when I try to access the crontab using the command below I am presented with an error message: sudo crontab -e -u ...
0
votes
2answers
517 views

Do I need postfix for /var/mail/root to work?

I want crontab to log errors. As far as I know, this is being logged to /var/mail/root, but it doesn't seem to be working. Do I need to install postfix for this to work?
0
votes
2answers
100 views

crontab email is not working as expected. First I got the emails at gmail, now I'm not getting them

First I ran a simple test to see if I could get crontab to send me an email. I created the following line: MAILTO = my_email_address@example.com 1 * * * * /bin/echo "foobar" This worked as expected ...
0
votes
2answers
105 views

different way of editing crontab

I have two ways editing crontab 1. edit /etc/crontab, then restart crond 2. crontab -e crontab in both cases I am logged in as root. what are the differences?
0
votes
2answers
713 views

How to get log of running cron job

How can I tail the running cron job, so that I can come to the conclusion that my job is going on.
0
votes
2answers
940 views

RHEL6 Crontab doesn't work properly?

In RHEL6 root's account I have crontab job: 30 6 18 4 1 /sbin/init 6 It worked fine on the 18th of April and properly restarted my system, BUT it also restarted my OS at 6:30 on next Monday - ...
0
votes
2answers
637 views

cron job not working

It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 ...
1
vote
1answer
454 views

Set default editor for crontab -e invoked with sudo

I'm using Bash on Debian Squeeze. I just read this topic: change default text editor for crontab to vim I have exported both variables VISUAL and EDITOR to vim for normal user and for root. And this ...
1
vote
1answer
282 views

Cron not executing jobs

I'm having trouble making cron work. I edit my cron jobs doing sudo crontab -u myuser -e sudo crontab -u myuser -l prompts my cron tables: ##### */1 * * * * /home/myuser/Projects/scripts/cron.sh ...
1
vote
1answer
207 views

How can I automate or script daily downloads for any new anti- virus databases, and then have the program scan my drive?

(I know there are much better softwares out there for the Mac so please don't go there! The politics of this company dictate which Anti virus we have to use) Anyway without any further wait: ...
0
votes
1answer
20 views

How can I set the terminal encoding when running a crontab job?

I have a crontab job which executes a Ruby script on Arch Linux. It works basically, but when I call "googlecl" to post to my blog, it always shows a "safeDecodeError" exception (eg.: ...
0
votes
1answer
61 views

redirecting output in crontab

I have a shell script to monitor table stats and java apps. It works fine when I run manually. But if I put it in the crontab it will get stuck if I don't redirect it's output with export display ...
0
votes
1answer
121 views

Cron unable to run shell script

I have been trying to get a shell script to run for hours using cron to no avail. I am trying to have the following bash script run every minute #!/bin/bash ...
0
votes
1answer
52 views

scheduling a script that accepts one argument in crontab

i am trying to schedule a shell script that runs for every 10 mins, and the script accepts some argument.. i have done it like this 0,10,20,30,40,50 * * * * sh ...
0
votes
1answer
79 views

Getting crontab error on Xubuntu

When running the command crontab -e i get the following error: no crontab for 'myusername' - using an empty one 888 Can anyone please help?
0
votes
1answer
91 views

Setup Crontab to work with Cucumber

I'm trying to setup crontab to work with cucumber. So far, I were able to get crontab to execute a ruby command, but not a cucumber command. This is what I have in crontab: ~/test.sh > ...
0
votes
1answer
2k views

Running Cronjobs as per Local Time rather than Universal Time

On running dpkg-reconfigure tzdata in terminal and i get 2 different time on my machine Local time is now: Wed May 1 11:58:55 IST 2013. Universal Time is now: Wed May 1 06:28:55 UTC 2013. ...
0
votes
1answer
103 views

crontab script don't execute if console is closed

I'm using Debian 6.0.6. I edited root crontab a few days ago to add this line: 00,10,20,30,40,50 * * * * /root/Scripts/con_switch6.sh >> /var/log/con_switch_diario.log 2>&1 I'm ...
0
votes
1answer
281 views

Is there a way to predict the next execution time for a crontab job?

I'm configuring crontab jobs on an Ubuntu server and I'm trying to figure out how can I predict the next execution time for my jobs individually. It's just a matter of making sure I configured the ...
0
votes
1answer
595 views

Mac OSX 10.6 Cron Job Not Running

I tried setting up a crontab on my Mac, but it's not running for some reason. Here's what I'm trying to run: */2 * * * * /BackupScript/backup.sh I have it set to every 2 minutes currently for ...
0
votes
1answer
528 views

Running an Automator task at night

I've just created an Automator workflow and I'm using crontab to execute it at night. The problem is that, after a while, the machine is going to sleep and a password is required (this is the intended ...
2
votes
0answers
71 views

Mac Crontab Deleted

I was messing around with creating cron jobs and somehow I wound up deleting crontab out of /usr/bin. Does anyone know of a way that I can recover it without having to re-install multiple components ...
1
vote
0answers
9 views

Performance loss when having too many files in /etc/cron.d?

Is there an amount of files in /etc/cron.d that would lead to worse performance? There are currently about 50 jobs in. In the future there can be up to 200 files in. Am I correct to expect the cron ...
1
vote
0answers
70 views

Enabling crontab logging on openSUSE

I am trying to enable the crontab log on openSUSE 11.3. I searched the web but couldn't find how to do it. I only find information about Ubuntu. Tried editing the /etc/rsyslog.d/remote.conf file but I ...
1
vote
0answers
818 views

Why does cron task run twice?

I have a task that should run each day in Ubuntu10.04. So I use crontab and copy the scripts of the task to the directory /etc/cron.daily. Here is the my crontab: # /etc/crontab: system-wide crontab ...
1
vote
0answers
256 views

What happens if cron.daily is not terminating

Today I had to realize that some cron jobs werent run on my server! In the log files I find this: Mar 13 03:30:01 osp-server anacron[7261]: Anacron 2.3 started on 2012-03-13 Mar 13 03:30:01 ...
1
vote
0answers
217 views

Why isn't crontab working for me? (Ubuntu 11.04)

I can't get the crontab jobs running. I've checked /var/log/syslog and the scheduled jobs aren't there. I've edited the jobs with sudo crontab -e so they are created for root. This is how my jobs ...
0
votes
0answers
14 views

setting gvim as editor for crontab

I've see many post saying that by setting the following evnironment variable EDITOR=vim or VISUAL=vim will allow to use vim as code editor for crontab. I would likt to try to use gvim instead ...
0
votes
0answers
19 views

Accidentally ran crontab without option, now empty

I typed in crontab into the command line (Linux CentOS) and hit enter, then when nothing happened I hit Ctrl+D, the command prompt came back, then when I went into crontab -e the file was blank but it ...
0
votes
0answers
23 views

deleted crontab on remote machine, but I don't know how

Here's the scenario: I have ssh access to internal.foo.com through bridge.foo.com. I wanted to make a local copy of the crontab from userx on internal.foo.com. My user has sudo access on ...
0
votes
0answers
52 views

Macbook with lid down goes back to sleep right after scheduled wakeup

I'm trying to run an app from crontab at 3 in the morning. My 2010 MacBook Pro running OSX 10.7.5 is usually turned off at this time of the night, so I'm setting Energy Saver's scheduled wake up at ...
0
votes
0answers
60 views

Crontab not wroking

I have created a script in Ubuntu. Here is the script: #!/bin/sh DISK_SPACE=`df -k | grep sda1 | awk '{print $5}' | sed '$s/%$//'` DISK_SPACE_LIMIT="58" if [ $DISK_SPACE -gt $DISK_SPACE_LIMIT ] ...
0
votes
0answers
277 views

Issue in running cron jobs in RHEL5

When I try to run cron jobs from root, I am getting the following error. I am using RHEL5. Can anyone help me? [root@localhost]# crontab -e Permission denied You (root) are not allowed to ...
0
votes
0answers
31 views

This weird behaviour from cronjob

I have set the crontab like this: */5 0 * * * /www/permitChat.sh and the /www/permitChat.sh is this: # We are setting the name of file # in the variable along with complete path. sFilePath=`date ...
0
votes
0answers
143 views

Crontab crash when running a script that insert a lot of lines in MySQL

My crontab is crashing when I run a script that insert alot of lines on MySQL Database, but when I run a script that inser few lines it run properly, is there some configuration file of cron? Maybe ...
0
votes
0answers
1k views

Running a bash script at random times using cron job

I need to monitor intrusion on a server at (relatively) random intervals. For that I have set up a cron job to run every hour. I have written three scripts: wrapper script that calls a ...
0
votes
0answers
417 views

user crontabs don't work, only /etc/crontab

Hi when I use the command crontab -e to set up cron, the commands get triggered (according to syslog) but nothing happens. Also if I run sudo crontab -e. The only way to actually get cron working ...