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
352 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
864 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
107 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
110 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
814 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
978 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
726 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
297 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
216 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
197 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
200 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
212 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
63 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
105 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
115 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
106 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
423 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
718 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
538 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
24 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 ...
2
votes
0answers
80 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
87 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
920 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
307 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
225 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
29 views

Not able to open crontab -l

I am running crontab -l to view the crons on a RHEL server(v5.10) and getting the below error: crontab: error while loading shared libraries: libaudit.so.1: cannot open shared object file: No such ...
0
votes
0answers
39 views

Correct crontab settings on Cpanel/WHM Cron on CentOS 6.5

I have recently migrated from collocation to Amazon EC2 and setup new WHM installs with CentOS 6.5 I then used the Transfer tool to move all websites to the new server, however I am trying to transfer ...
0
votes
0answers
5 views

CronJob doesnt seem to be executing my SH script

SH script does has permission. (Chmod +x) Timezone on the server is set correctly. So, for some reason it seems as if my cronjob I have setup is not running my SH script. I think it had something to ...
0
votes
0answers
50 views

Why does my bash command not work in cygwin cron?

I have a simple shell script that works perfectly in cygwin under my login: /cygdrive/c/Users/sam.walton/work/inspector/push_db.sh It will download a file via curl and dump it to a Windows share. ...
0
votes
0answers
47 views

Accidentally ran crontab without option, now empty

I typed crontab into the command line (Linux CentOS) and hit enter. When nothing happened I hit Ctrl+D and the command prompt came back. When I went into crontab -e the file was blank but it showed ...
0
votes
0answers
29 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
66 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
346 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
32 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
153 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
428 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 ...