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

learn more… | top users | synonyms

3
votes
1answer
328 views

Raspberry Pi: open browser using bash and crontab

I'm trying to setup a simple bash script. I want to open the browser. chromium-browser <url> works if I do it in the cli or in the bash script if I run the script by ./scrpt. But if I put ...
3
votes
1answer
543 views

Shell script of mysqldump works fine when run manually, but does not run in the cron job?

I have a shell script to get a MySQL database dump. This script works fine when run manually #!/bin/sh fqn=/home/Mysqluser/daily_dumps/bookstore_`date +%Y%m%d_%H%M%S`.sql.gz mysqldump -u root -h ...
2
votes
1answer
2k views

Two parts: linux startup script to connect to bluetooth and cron to keep it connected

I have a mini bluetooth keyboard and a Raspberry Pi running a Debian-based distro. I know the MAC address of the keyboard but for this question, let's just use AA:BB:CC:DD:EE:FF. Right now I have to ...
2
votes
1answer
155 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 ...
2
votes
1answer
1k views

/etc/environment and cron

I've got two machines: Fedora and CentOS. And a cronjob 0-59 * * * * env > /home/me/env.log On CentOS I can see that /etc/environment is affecting the output while on Fedora it does not. I want ...
1
vote
1answer
721 views

How can I set a system wide PATH-variable for cron on Centos 6.4

I'd like to make sure that every user specific crontab has the same PATH-environment. I tried to set the PATH in /etc/crontab but it seems like this config file is not read by crond. Following are ...
1
vote
1answer
279 views

How to edit multiple cpanel user cron jobs at once?

I'm using cat /var/spool/cron/* to view all cron jobs created by all cpanel users. Is it possible to edit its output just like editing via nano and hit save?
1
vote
1answer
224 views

What might cause cron jobs to occasionally not run or complete?

In my crontab, I have set MAILTO and a bunch of cron jobs (5-10 jobs). These cron jobs usually run fine and I get emails for them. Most of these jobs consistently run as expected. Emails and ...
1
vote
1answer
453 views

Need to set cron for random intervals with iMacros

I am trying to learn about cron for iMacros but I don't know where to look. Google was no help. Basically I have script I wrote, a series of commands, like this: Line 1 Line 2 Line 3 etc. What I ...
2
votes
0answers
162 views

Running cron on Cygwin to call notifu

I have installed Cygwin with cygrunsrv and Cron so I could use the benefits of using Linux-style scheduling in Windows. I want to call notifu from a cron job. I Installed cron as a service using the ...
1
vote
0answers
8 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
34 views

How to Schedule Tasks according to several Timezones

I need to use Windows Scheduler or any other app for setting jobs at a concrete time depending on destination country. That means scheduling a job at 7 am (UK Timezone), another at 7 am (US ...
1
vote
0answers
51 views

Cron deamon written in shell

I'm looking for a script in bash or ksh, that would do ... more or less ... the same as crond. The situation is, that our system administrator suddenly denied the use of crontab to all regular users ...
1
vote
0answers
66 views

Ncat throws errors while being run from crontab

I have a simple script set up on my OpenWrt box to check if one of the computers in a local network is streaming, and if it does, the script starts wget | madplay to play the stream. Script works ...
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
91 views

script executing perfectly in terminal but not in cron

I setup a script for to take an mysql db backup everyday on a specific time, so now the cron is running perfectly it executing the script without problem but the problem is db backup file is not ...
1
vote
0answers
376 views

“ssh_exchange_identification: Connection closed by remote host lost connection” when running cron job

I have a Ruby script that connects to a remote machine via ssh and executes a command. The script runs fine when I just run it in my terminal. In my crontab, I have 1 * * * * /bin/bash -l -c 'ruby ...
1
vote
0answers
391 views

Inconsistencies with SCP for Ubuntu and Windows Server 2003 (using CygWin 1.7.x.x)

Some days ago I was able to scp to the remote server from my windows server 2003 using cygwin to copy the id_rsa, using scp (id_rsa.pub location) user@example.com now it(scp) seems to be not working. ...
1
vote
0answers
815 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
41 views

query a URL every H hours for changes in the results?

How can I query a specific URL (mostly html and js) every H hours for changes in html content, which is mostly an html table with some header, and have the results fed to an RSS? This URL in question ...
1
vote
0answers
583 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 ...
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
0answers
16 views

Is it better to use the systemd service unit's Restart & RestartSec, or use a systemd timer unit?

I have a couple of in-house automated scripts running at periodic intervals. One is every five minutes, the other is every minute. They don't really need to be ran on-the-dot; e.g. I don't care if ...
0
votes
0answers
18 views

How to parallelize crontab executions to increase user base for web app based on mongodb and mysql?

I have a symfony based web application that runs on mongodb and mysql backend. The principle of the application is that for each user there is a python script that runs 4-12 times a day on cronjobs ...
0
votes
0answers
23 views

cron job monitoring script

greeting of the day!!! please help me a situation, i am trying to develop a script which provides me details which my cron job is commented or stopped which job is running or scheduled. like we ...
0
votes
0answers
7 views

Trying to find dbus session, doesent work

Trying to use notify-send with cron, it needs dbus, what im i doing wrong? var= $(set | grep '^DBUS_SESSION_BUS_ADDRESS=') export DBUS_SESSION_BUS_ADDRESS=$var #!/bin/sh { ...
0
votes
0answers
13 views

Make a script identify DBUS session address and use it

I'm using cron with notify-send to display some notifications, but it requires DBUS session to run Here is the script: export DBUS_SESSION_BUS_ADDRESS=[session] #!/bin/sh { DISPLAY=:0 ...
0
votes
0answers
21 views

Warning: the connection is closed, while running cron job

I have found on the Internet simple script to download wallpaper from bing and set it. #!/bin/bash # export DBUS_SESSION_BUS_ADDRESS environment variable useful when the script is set as a cron job ...
0
votes
0answers
101 views

Copying file to AWS S3 from a cronjob

This is a script I've put in my /etc/cron.daily on a Ubuntu Server box: #!/bin/sh /bin/echo "Running upload-logs at $(/bin/date) as $(/usr/bin/whoami)" >> /tmp/upload-logs.log /usr/bin/find ...
0
votes
0answers
11 views

logging jobs submitted by at vs by cron

I can schedule a job via cron so that the job's output is stamped at the time the job is run. Pseudo-code: DATE_CMD='date +%Y-%m-%d-%H-%M-%S-%N' * * * * * ~/bin/foo >> ...
0
votes
0answers
33 views

Cronjob doesn't seem to work in Parallels Plesk

I set up two cronjobs in Plesk using their interface, but they don't seem to work. What's wrong? * */1 * * * curl --silent --compressed http://*****.com/assign_social_scores */5 * * * ...
0
votes
0answers
37 views

Scheduling a job using launchd to run on the last day of every month

I am using Mac OS X Server 10.8.3. I want to schedule a job using launchd so that the job will execute at 2:00 pm on the last day of every month. How can I schedule this through a plist file? I have ...
0
votes
0answers
143 views

Rsyslog hangs processes

I have a quite odd problem. At random times my dovecot daemon dies and I cannot receive/send emails while the host is still up. When trying to SSH into the server to see what happened, I discover that ...
0
votes
0answers
26 views

Cpanel cron timing issue

I am running a cpanel server. I set a cron task to run every minute. So in my cron tab I set like below- * * * * * php /path_to_script >/dev/null 2>&1 Initially the task added ...
0
votes
0answers
45 views

Rsync delete issue

I implemented rsync to backup the data from the server to my local machine,and done it regularly by cron. It works fine but yesterday it deletes the files from the folders on my local machine but on ...
0
votes
0answers
29 views

Issues with Cron Mail

I am running a script via cron on a server named backup.server.redacted.org (name made up). The webmaster team's email address webmaster@something.redacted.org, which is the MAILTO= in our crontab. ...
0
votes
0answers
20 views

Run task periodically depending on last successful run

I am looking for a way to manage a script execution. The only requirement is to execute a command depending on the time of the last successful execution. For example: I want to mirror my latest ...
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
51 views

How do I launch an hourly version of anacron?

I have a cron job (system update) that fires off every hour. However, I would like it to be reset every time the machine resumes from standby or hibernation. The command is already launched at each ...
0
votes
0answers
31 views

cron not executing a particular command

copy of my crontab: # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the ...
0
votes
0answers
180 views

Crontab command set not working

I'm trying to set up crontab to run a shell script, but for some reason, the script doesn't get executed. I'm on system with OS X 10.8.5. crontab file 0 12 * * 1 /absolute/path/to/myscript.sh 0 15 * ...
0
votes
0answers
25 views

How do you commit changes to an XML file to source control when they are changed by the users of a web app?

An admin web app (closed-source, 3rd party) that we use generates XML files into the Linux server where it is running. These XML files contain application settings for a production application. Only ...
0
votes
0answers
150 views

Cron job not working due to wget error

I'm setting up a CRON job on my MediaTemple DV4 to generate a sitemap. To test I ran the command via the command line: wget ...
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
141 views

Will my weekly cron job work?

I'm just getting back into bash scripting and I want my cron job to run every 15 minutes between 9.15 and 10 PM. I've checked the script works, but I don't know if it's the right command: ...
0
votes
0answers
468 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 '/', ...
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 ...
-1
votes
0answers
16 views

Redmine mail software not working

I'm having a huge problem with redmine and I need to solve it in 2 days. So my prob is, redmine has not an email send recognition thing integrated. Usually every support system has something when I ...