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

learn more… | top users | synonyms

3
votes
0answers
1k 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 ...
2
votes
0answers
45 views

Setting up a watchfolder

I want to make a folder that I can put any video file into and have ffmpeg catch it and spit it out as an mp4 and remove the non-mp4 file. I have the following: for f in *.*; do ffmpeg -i input -c:...
2
votes
0answers
54 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
824 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 crontab)....
1
vote
0answers
35 views

How can OS X cron use existing ssh-agent without environment?

I've looked all over these forums, and either haven't found an answer to this, or more frequently, the question is different. Client is OS X El Capitan. I am logged in, and my ssh key (with ...
1
vote
0answers
73 views

Many cron -f processes on unresponsive server

My Debian server had again become unresponsive and needed to be restartet (SSH login impossible, no longer transmitted log data to another server's MySQL Database, no new FTP connections possible, but ...
1
vote
0answers
101 views

Output redirection of cron jobs to an external file

I have been trying to redirect the output of a cron job to an external file but to no avail. I am using CentOS 7 headless. I created a small script to execute two commands. The script in itself ...
1
vote
0answers
124 views

cronjob + upstart for a node.js script

I can start my node.js script as a process like so: start demo because in /etc/init/demo.conf i have: respawn respawn limit unlimited exec node /home/engine/private_js/demo.js >> /home/...
1
vote
0answers
65 views

Stop automatic comments in my crontab

I have added the bellow cron jobs in my crontab : 0 5 * * * /bin/systemctl restart gb_subagent.service 28 13 * * * /home/comment.sh &>/tmp/errorcron.log 29 13 * * * bash /home/...
1
vote
0answers
342 views

which mail program will be used in crontab?

Platform: Ubuntu 12.04 LTS User: root Desc: If there is any output to stdout/stderr in execution, crontab will collect them and mail to correspond owner. In my case, it is 'root'. When I look at ...
1
vote
0answers
178 views

Unable to run script, which emails me results, as super user. (returns: send-mail: 550 5.1.0 Not our Customer)

I have been trying to debug this for 2 days now, without success. This is the script I'm trying to run: #!/bin/bash emailaddress='my_username@gmail.com' output=`sudo rsync -av --delete /media/sync/1/...
1
vote
0answers
36 views

Sample cron job run but gave errors

I have sample script that backup my site. www folder and database. When is running It's get this error tar: unrecognized option `--transform' Try `tar --help' or `tar --usage' for more information. ...
1
vote
0answers
572 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 Timezone),...
1
vote
0answers
63 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
138 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
290 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
481 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
1k 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
534 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 osp-...
1
vote
0answers
42 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
106 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 ...
1
vote
0answers
475 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 ...
0
votes
0answers
3 views

Install cronjob from file to a specific user

I have an install script that sets up a user. Using the install script, I want to apply a cronjob that gets executed by that user (myuser): 0 4 * * * /home/myuser/script-to-run-at-4am.sh I have ...
0
votes
0answers
29 views

Schedule on crontab to reboot router

I would like your much aprreciated help. I have a ISP router (gateway) that doesen't have a schedule reboot on the web interface. I have a raspbian and I would like to schedule on crontab to reboot ...
0
votes
0answers
5 views

Making fcron run all jobs in a manually given time range?

How do I tell fcron, to run all jobs scheduled for a time range that I’d give as a parameter. My PC might be off in the scheduled time, e.g. because I slept at an unusual time. And I can’t run them ...
0
votes
0answers
25 views

How to fix report timestamps generated by aureport via cron?

I set up two aureport cron jobs the other day: 1 0 * * * /sbin/aureport -ts yesterday 00:00:00 | mailx -r "info@domain.com" -s "[Audit report] Summary" "user@domain.com" 1 0 * * * /sbin/aureport --...
0
votes
0answers
37 views

How to get statistics of CPU throttling?

My dmesg output says that the CPUs are throttled, because of the temperature. [ 1283.260276] CPU3: Core temperature above threshold, cpu clock throttled (total events = 1) [ 1283.260277] CPU2: Core ...
0
votes
0answers
24 views

Full text, dynamic, RSS feed generator

I am looking for a solution to produce and update regularly full-text RSS feed. The goal is to provide full text feeds from a variety of websites to my canto rss reader. There are several services ...
0
votes
0answers
34 views

How to make automatic hourly/daily/weekly snapshots with Btrfs

I remember working at a company with a NetApp server in 2003, and we had a snapshot directory in our home directories, with various snapshots appearing in it. I think there were snapshots for the last ...
0
votes
0answers
38 views

aws linuxAMI crontab ec2 to s3 backup command not working

I am new to Aws Platform and was trying to get Hands on experience on Command Line... but when i was configuring installed wordpress site...and syncing it to S3 bucket.. and for that my instructor was ...
0
votes
0answers
18 views

Cron job appears to work, but no changes seen in file

I have a simple cronjob that uses curl to download a file and save the contents to a file. The crontab file reads: 45 17 * * * /home/my_username/public_html/./update_md.sh where update_sh.md = #!...
0
votes
0answers
15 views

Schedule the cPanel Transfer Tool

I'd like to schedule the transfer tool from cPanel, i'd like to do this daily to keep things synced with a failover backup server, identical to the first. I am looking at https://documentation.cpanel....
0
votes
0answers
102 views

cron apparently requires a newline character on its own line at the end of the file

I'm trying to understand why cron is refusing to work with a certain crontab file. The manpage for crontab says: cron requires that each entry in a crontab end in a newline character. If the ...
0
votes
0answers
16 views

cron expression day of month AND day of week, instead of OR?

Probably not, but is there any way to make DOM and DOW in a cron expression be an AND relationship? For example: "0 0 1-7 * thu" Means: At 00:00 on the 1, 2, 3, 4, 5, 6 and 7th of every month and ...
0
votes
0answers
52 views

Can't open URL on remote display from cli over SSH

So I'm running an office 'dashboard' on a Raspberry Pi (wheezy) in my office. I've set up the pi to kiosk mode that automatically loads up the scrolling graphs page on boot. All day long it loops a ...
0
votes
0answers
23 views

Ensuring Cron Jobs are called from within the Server

Here is the information about my development environment: Windows Server 2012 R2 Standard 64-bit Operating System, x64-based processor Microsoft Visual Studio Professional 2013 .NET Framework 4.0 ...
0
votes
0answers
77 views

Loading kerberos keytab from root cron

When I run a script (see below) to load a kerberos keytab from a users cron it works just fine. Running it from root cron however a password is asked for the keytab and it aborts with: kinit: Generic ...
0
votes
0answers
35 views

I want to run a script that will disable my touchpad

I want run a script that will disable my touchpad and it will run every minute. 1. My script is: if [ `lsusb | wc -w` == '76' ] then `/usr/bin/xinput set-prop 16 "Device Enabled" 0` else `/usr/bin/...
0
votes
0answers
20 views

How can I give time restricted access to certain Jenkins builds?

I have a Jenkins cluster for automated builds. I would like to let our developers run some builds to one of our UAT environments. However, builds from the developers should only happen when I'm ...
0
votes
0answers
215 views

Cron does not start: '/var/spool/cron' is not a directory, bailing out

I have an LXC container (The LXC host is Debian 8.1, and the container is Debian 4.0) running mysqld, sshd and a few other things. However, cron does not come up. $ /etc/init.d/cron start Starting ...
0
votes
0answers
10 views

Configure Cron log to show job number

I have several PHP cron jobs. Occasionally these jobs abort, logging with the appropriate process id etc. However the job number isn't included in the abort log message. Is there a way to configure ...
0
votes
0answers
61 views

How to determine what is updating my freedns/dyndns record with my current IP (on OS X Yosemite)?

Somehow, a while ago, I set a way to automatically update my DynamicDNS record on http://freedns.afraid.org/ with my Mac IP address. I don't remember how I set this or where should I look to disable ...
0
votes
0answers
29 views

High load after killing processes

My Linux home server (a RPi 2 with Raspbian) had a script running every 5 minutes from a cron job (an old rpi2pachube.sh). It usually runs a Transmission daemon. I just discovered that that script ...
0
votes
0answers
40 views

Red Hat Linux Cron Daemon Time Error

I have a legacy system that is running Red Hat Linux 5.4 and the cron daemon will not start. It stopped suddenly, I verified the CMOS time and the system time are correct. I've tried resyncing with ...
0
votes
0answers
105 views

CRON @reboot vncserver?

Is there any reason per-user cronjobs running vncserver @reboot wouldn't run? When I reboot the machine and look into /var/log/syslog, I see the jobs being run, then cron saying (CRON) info (No MTA ...
0
votes
0answers
133 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
157 views

How to run browser in background in Ubuntu

I am using Ubuntu 14.04, and PHP. I have 2 files: test.html - content java to test network update.php - the test file will post result to update database. I need to run and execute an URL address ...
0
votes
0answers
20 views

How can I queue a script to run the next time a system is up and connected to the internet?

I'm using mailsend (on a Mac) to send mail from the command line. I'd like to set this up such that I can execute a send command, but if my system is disconnected from the internet, that command is ...
0
votes
0answers
224 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
55 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 ...