cron is a task scheduler based on clock time that runs on Linux-based machines.

learn more… | top users | synonyms

1
vote
0answers
502 views

Set the from address on emails from cron/Set default from address for sendmail

As a normal user I can send email, either from the commandline or from PHP. But when a cron job has error output, sending of that email fails (I have a MAILTO=me@example.com at the top of the ...
2
votes
3answers
5k views

Timezone issue with cron

My cron jobs are computed one hour later compared to server time. I don't understand what is going on. My configuration is the following : Server time : Europe/Paris In /etc/default/cron I added ...
1
vote
1answer
432 views

Background Jobs from cron

I am running a cron on every two minutes. From the cron I am running other shell scripts in background with "&". After cron exits spawned shell script process still runs, this is desired behavior. ...
-1
votes
1answer
384 views

Running transmission-gtk under cron

I have a problem with cron on Ubuntu 10.04 and 11.04. crontab -e I have typed: 49 22 * * * /usr/bin/transmission-gtk I have also tried: sudo /etc/init.d/cron restart pgrep cron
2
votes
1answer
141 views

cron job not executing

I have a cron job that is supposed to run a script every 15 minutes. */15 * * * * /path/to/script.sh I checked in three hours later and found that the script never ran, even once. Earlier I tried ...
-1
votes
2answers
1k views

How do I create a wake up script using PowerShell? [duplicate]

Possible Duplicate: Alarm clock software that can turn the computer on? I need something that can wake someone up in the morning - basically like a cron event in Linux. I think this needs ...
0
votes
2answers
5k views

how do I see the history of crontab?

I've read a few posts on the web, gone and looked for the file they are mentioning and haven't found it. I'm in Ubuntu 11 and trying to troubleshoot a cron job that isn't running, even though I have ...
1
vote
1answer
958 views

Will cron on linux run the same job multiple times?

I am setting up an rsync backup job on linux (ubuntu 11.10 server). If the backup runs long, and is still running when the next scheduled time comes up, will cron start another instance of rsync? Or ...
1
vote
1answer
372 views

Jobs with anacron won't run

I would like to run two bash scripts daily using anacron in order to backup some data. Unfortunately I can't figure out why said scripts are not executed. For test purposes I let cron execute the ...
0
votes
2answers
1k views

How to setup a cronjob to auto download a file on Mac?

I'd like to setup a cron job to auto weekly download a file from my web hosting. I'm running OS X.6.8. I want to specify the folder that the file downloads into. How can this be done? I just want to ...
7
votes
7answers
6k views

Error adding cronjobs in Mac OS X Lion

Until now, I have never attempted adding a crontask on my Mac. To my surprise, it threw an error.. [hayek@mac:/www/] 02:33:22 PM: crontab -e ...
1
vote
2answers
579 views

Logrotate Error

When using logrotate from a cronjob, I am getting this erros: error: unable to open /var/log/mylog.1 for compression Does any one know what does it mean and how can I fix it ?
1
vote
1answer
7k views

Crontab script on Mac OS X Lion does not work anymore

I have a problem with cron tasks. Previously this script worked fine on Mac OS X 10.6 server, but when I initialize it on Lion (client), this script stopped working. Basically, this .bat file calls ...
1
vote
2answers
4k views

Why isn't my cron job going?

I was told that to get a cron job running hourly you simply have to put a shell script into /etc/cron.hourly So I tried adding #!/usr/bin/env sh firefox www.superuser.com Into a file test.sh and ...
0
votes
2answers
1k views

Open a terminal from a Crontab

How do I get a gnome-terminal window to open from a crontab? I have tried this: * * * * * /usr/bin/gnome-terminal * * * * * source /home/user_name/.bashrc ; /usr/bin/gnome-terminal * ...
0
votes
1answer
146 views

Scheduling Cron Jobs Without Colliding Frequencies

If I have several cron jobs that run: Every minute Every 5 minutes Every 15 minutes Every hour At midnight Then at exactly 00:00 I have 5 jobs running at the same time. I want to add another job, ...
4
votes
2answers
1k views

rsync over SSH with cron in osx-environment

I want to automatically download files and folders from a Linux server to which I have an SSH (and FTP) account. The files shall be downloaded on a regular basis (I suppose a cron is the right tool to ...
1
vote
2answers
1k views

JAVA main class not found when using Apple auto-ingest tool

I am trying to setup a cronjob to download my daily and weekly reports from iTunes Connect. I have downloaded Apple's Autoingestion.class and I have made the following shell script to download the ...
4
votes
1answer
2k views

crontab day of week vs. day of month?

I added this to /etc/crontab on a few different linux & freebsd systems: # monthly reboot: 3rd Tuesday of every month 56 07 15-21 * 2 root /sbin/shutdown -r now I want a reboot on the 3rd ...
3
votes
1answer
5k views

Bad minute in crontab?

I get the following error in my syslog: Oct 17 13:14:03 tracker cron[873]: (*system*) ERROR (Syntax error, this crontab file will be ignored) Oct 17 13:14:03 tracker cron[873]: Error: bad minute; ...
2
votes
2answers
470 views

What are the limitations of crontab?

Hardware considerations aside, are there any limitations on: The maximum number of cron jobs that can be scheduled for a single user The maximum number of CONCURRENT jobs that can be scheduled for a ...
1
vote
1answer
839 views

Cron alternative with timeouts and second resolution

Do you know an alternative to cron daemon that has second resolution, timeouts, and advanced system for error reporting? But it should be lightweight and should support different platforms(linux and ...
2
votes
2answers
507 views

wget doesn't see proxy under cron

I'm new to freebsd and have a problem: my script uses wget. when I call it from the command line it works fine and I see the output like this: --2011-09-22 15:55:58-- ...
1
vote
3answers
1k views

run cron every minute during a specific hour?

Running a cron job every minute is easy, running it at specific minutes past the hour is easy. But is it possible to say "only between 1300 and 1400 run every 1 minute"?
2
votes
2answers
1k views

How to set CRON to execute a php file outside of a public html folder?

I have a php file located at, let's say, for example: /data/web/process.php This file is not publicly available (no virtual host is running in that folder, but apache is installed). I need to ...
0
votes
1answer
63 views

Undocumented crontab entries

At one of the production servers, some processes are using crontab to start periodically. When I inspect the crontab entries, I see: * * * * * some job I cannot find out what this actually ...
1
vote
1answer
10k views

rsync cron job with a password?

I want to set up an rsync command as a cron job, so I need to find a way to supply my server password automatically to rsync. Currently I have a shell script that looks like this: #!/bin/sh rsync ...
3
votes
4answers
597 views

How do I add a job to cron?

So, here's what I did: Logged in as root via Shell Typed crontab -e Typed */30 * * * * /path_to_website/cronjobs/cron.php And now what? How do I save it? I just closed Putty and then logged back ...
1
vote
1answer
923 views

Screenshot cron job not working

I've been searching all over the internet for an aswer to this but can't seem to find anything that works for me. I want to run a cron job that automaticly takes a screenshot every minute. The script ...
0
votes
0answers
448 views

How to set cron HOME environment variable?

I am using esmtp to send email as an output of cron job. The SMTP server and credentials configuration are stored under my $HOME/.esmtprc. However it looks like the $HOME env variable is set to '/', ...
2
votes
2answers
541 views

Do jobs in root's crontab still execute when logged in as another user?

I have edited my root's crontab. Will root's cron jobs still run when I'm logged in as another user?
1
vote
1answer
300 views

Cron issue with daylight savings time

I have a cron job to send an email once everyday. I actually do not know the issue, but i'm guessing it has something to do with daylight savings time. During DST, my emails are sent one hour late ...
0
votes
2answers
294 views

cron: log output of job, email errors?

This is a ridiculous newbie question, sorry! I am running a (Python) script regularly using cron. I would like to log the output to a logfile, and I would like to be emailed with any errors that ...
1
vote
0answers
98 views

script -e and crontab or at

I have a shellscript I want to run via at and use script to capture a transcript. script -e was introduced in util-linux-ng 2.18 and returns the retval of the child process. I want to capture the ...
0
votes
2answers
2k views

FTP from bash script running from cron not working

I have a script that is run by cron to create backup of a MySQL database and some files. After creating a tar ball and encrypting it with openSSH I have to put it on a remote ftp server. Following is ...
1
vote
1answer
278 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 ...
2
votes
1answer
502 views

How do I stop display and another email of changes when running aptitude full-upgrade after receiving apticron email notifying of the same changes?

My home server used to run Ubuntu 10.10 server with apticron installed, which periodically (via cron) sends emails when updates to your installed packages are available. This email includes a list of ...
1
vote
1answer
236 views

View the event list of a cron file

I have a relatively complex set of cron jobs running and it would be really useful for me to ask the system for the list of the next n cron tasks that will be performed. So given a particular ...
0
votes
1answer
579 views

Scheduled process killing and restart

I have to write a script for a CentOS server which will kill and restart a process every three days. After killing the process it needs to execute another script and start the killed process. ...
6
votes
2answers
4k views

Difference between /etc/crontab and “crontab -e”

What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?
5
votes
1answer
2k views

Only email on cron errors for jobs in cron.daily, cron.hourly, etc

I have several cron jobs that run (in /etc/cron.daily, /etc/cron.hourly, /etc/cron.weekly, etc.) and email root@localhost with the results. I'd like to stop those emails if the jobs are succeeding, ...
2
votes
2answers
6k views

How to create folders according to date in Linux?

Is there any other short/easier and smarter way to do the following in Linux? cd /home/abcd/dammi mkdir $(date +%Y-%m) cd $(date +%Y-%m) mkdir $(date +%d) # RESULT : /home/abcd/dammi/2011-05/26 cd ...
2
votes
1answer
375 views

Scheduled Push Changes To Local Git Repository (Ubuntu)

Boring Background - Summary: I know we're not using GIT properly!. This started as a small hobby project and has spiralled - my company uses Git to track/manage changes to a bespoke web-based software ...
0
votes
2answers
230 views

How do can I update a Form using shell/bash script on Linux?

I am wondering is it possible to echo values like below described? The situation is - there are too many "doc" files named like "PLCI507_01234567.doc", and there is a Form in a text file named ...
0
votes
2answers
1k views

cron every five minutes for three hours

I would like to set up cron run at 4.30 am every five minutes for 3 hours so it would stop executing at 7.30, how to do it? would this work ?? */5,30 4-7 * * *
4
votes
2answers
1k views

Should I worry about Daylight saving time when planning to schedule backups?

So if there is a day: https://secure.wikimedia.org/wikipedia/en/wiki/Daylight_saving_time when we have to e.g.: set our clock back from 3am to 2am. Ok. So if someone creates a cron job at 3am, ...
1
vote
1answer
3k views

Chrome browser full Kiosk mode in Linux (Puppy Linux)

Let me just say thanks in advance. I am having issues getting google-chrome browser into full KIOSK MODE with no browser bar on a linux platform Looking through the google forums I have found ...
1
vote
1answer
289 views

Telnet fails to run properly when run from daemon process

When I call telnet to connect to daytime server from interactive shell, it works fine. However, when the same telnet call is issued from a shell script run by cron or some bash daemon process, it ...
0
votes
2answers
915 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
1k views

In CPanel, cron job is not being executing and not sending any mail

though many of us has asked many question related to cron jobs, let me ask my one... I want to execute a PHP script periodically. As a cron command I'm using: php -q ...