-1
votes
1answer
18 views

difference between atjobs & atspool directory

when i was working with ubuntu 12.04 at command i noticed that there are two different directories /var/spool/cron/atspool and /var/spool/cron/atjobs . I want to know what is the difference between ...
1
vote
1answer
62 views

Cannot get ntpdate cron to run

I'm trying to have a daily cron update the clock on my 12.04 server. I've followed the instructions here, but it still doesn't run: After a few weeks, the clock once again is off by a few seconds. ...
0
votes
1answer
37 views

Not able to view a file using crontab

cat filename.txt displays the contents of the text file in the same terminal the command is executed. But In Crontab when I type * 14 24 3 1 cat filename.txt nothing gets displayed at the time ...
1
vote
0answers
17 views

Vixiecron doesn't allow disabling of emails, how can i disable cron emails globally?

Vixiecron doesn't allow disabling of emails, how can i disable cron emails globally? Every time the cron runs there are some sendmail processes being created which take our machine to huge high ...
1
vote
1answer
61 views

Command with backticks and percentages not running in crontab

The following crontab does not work: # TEST LINE DOES DOT RUN */1 * * * * /bin/echo 'test '`/bin/date +%Y-%m-%d` >> /tmp/test I also tried starting it with: SHELL=/bin/bash Update: I ...
1
vote
1answer
144 views

Script not running in crontab, file not found

I need your help to run a bash script in crontab. As many other posts in askubuntu I'm facing the problem that a script that is properly running in terminal mode does not run in crontab. The error I ...
2
votes
1answer
38 views

Check when folder was last synchronized with rsync

I'm using a cron job to backup a folder to another computer. I'm not sure whether or not it succeeded and /var/log/rsync.log is only showing errors, all of which occured before the scheduled backup. ...
1
vote
1answer
259 views

Crontab GUI for Ubuntu 12.04

Is there any app for the Ubuntu 12.04 LTS (server, no visual interface) in order to easily manage crontab? Maybe a daemon running in background and access to it via a web browser? Using crontab -e is ...
0
votes
1answer
65 views

Need To Rotate Logs From Virtual Hosts on Ubuntu VPS

I have a 1gb VPS running ubuntu that I have installed Apache, Mysql and PHP. I have 3 sites all in my home directory that are using name based virtual hosting. I have created three separate files ...
0
votes
1answer
38 views

crontab formats

I want to run few crontabs at startup and also at regular intervals. I have used the below format - # M H Dom Mon Dow 0 7-21/2 * * * //this will run daily from morning 7:00 to 21:00 clock with ...
0
votes
3answers
74 views

Cronjob for specific hours

I need a cronjob with criteria to power on/off a TV on the basis: Mon-Fri, power on the screen at 07.00 and power off the screen 17.00. Friday after 17.00 to Monday morning to be powered off. I'm ...
1
vote
0answers
121 views

Can't stop LAMP graceful restart

I just got my first LAMP up and running, everything works fine except that my server is restarting itself every sunday. When I read the logs I see "Graceful restart requested, doing restart" Should ...
2
votes
2answers
126 views

use Cron to mail log from a job

I have a weekly script that cron runs to make a zfs snapshot. I was wondering if it is possible to mail a OK mail if the job run correctly and a error mail if something happened and in the content of ...
0
votes
1answer
208 views

How do I setup php and mysql cronjobs on ubuntu 12.04 server?

just made a lamp install adn got sftp working. My question now is how do I setup cronjobs in ubuntu server? I need to make some cronjobs for my php/mysql application. Look for un-activated users in ...
0
votes
1answer
2k views

Script not running from crontab but running from terminal?

The script is running from terminal but not from crontab.The script code and error i am getting is written below : Cronjob */5 * * * * cd /root/; python mkdir.py Script #!/usr/bin/python import ...
0
votes
1answer
622 views

Give www-data permissions of root?

I want to access the root crontab from web interface.I have Apache and PHP installed.I have a project in which i have to change the job timings in crontab. How can i change the timing of crontab jobs ...
0
votes
1answer
187 views

Starting xterm windows via cron

I am using cron on Ubuntu Server 12.04 to schedule the system to automatically reboot at midnight, and on reboot, execute a script that starts a vnc server and opens eight terminal windows and runs a ...
1
vote
1answer
206 views

Cron job bash script to restart desktop sharing?

I'm having trouble with desktop sharing crashing while during remote sessions. Is there a way to set cron to check and restart, if necessary, the desktop sharing application with a bash script?
9
votes
2answers
6k views

All commands in my crontab fail with “Permission denied”

crontab -e and crontab -l work just fine: $ crontab -l | grep -v '^#' * * * * * /usr/bin/env * * * * * echo 'Hello from crontab' However, I see two messages like this every minute in ...
0
votes
5answers
6k views

Cron job to restart Apache

Ubuntu Server 12.04. I use: sudo crontab -e * * * * * root /etc/init.d/apache2 restart > /dev/null 2>&1 sudo restart cron And it doesnt work. How to fix it? So many docs in google,I need ...
2
votes
3answers
4k views

How can I use Cron to run shells scripts at a fixed time?

I am wanting to learn cron and I searched for some quality tutorials. I found How do I set up a cron job. My goal is to have a folder on a network that will have sub-folders. Each sub-folder is a ...
4
votes
3answers
3k views

unattended-upgrades not running, /etc/cron.daily/apt missing

I have automatic-upgrades installed and configured, but it never seems to run, because there are always security updates waiting to be installed when I check. ...
1
vote
1answer
100 views

How to prevent automatic apt-get operations from running for a while?

In a production context, we run scripts to configure/customize the OS. It makes intensive use of apt-get (to install, remove, update, upgrade packages). Unfortunately it happens (especially just ...
3
votes
1answer
292 views

Cannot get gsettings set to work at boot using cron, rc.local, or autostart

I am trying to "lock down" the computer by running a script at boot that turns lock on, lock screen after 10 min and require password, etc. I am using Ubuntu 12.04 I have tried editing crontab, ...
2
votes
1answer
373 views

Cronjob for security updates?

I'm having trouble creating a cronjob for automatic security updates on my ubuntu server 12.04. I separated the security sources into a different file, and then did this from within a cronjob: ...
2
votes
2answers
2k views

Stop cron from mailing the user

I am facing an issue with Ubuntu server. I am running a PHP script using a cron job which executes every 5 minutes. This folder spool/mqueue is showing 112GB space. The scripts job is to fetch data ...
1
vote
2answers
10k views

Use /etc/aliases for outgoing mail relayed by postfix with local domain

I'm using Ubuntu 12.04 with postfix configured as satellite system that relays outgoing mail to Gmail. For sake of example, my registered domain is example.com I want root cronjobs' error output to be ...
1
vote
2answers
2k views

Auto shutdown server if there was no activity

My server should shutdown after 01:00 am, if there was no activity in the past hour. Lets say there was the last connection at 00:43 then it should check again at 01:43. How to write such a ...
4
votes
2answers
765 views

Ubuntu 12.04 isn't working with one of my crontab commands… any ideas?

In my crontab file (sudo crontab -e) I have the following commands: */1 * * * * wget -q -O /dev/null http://help.mysite.com/inc/mail/hesk_pop3.php 0 7 * * * bash -c "/home/backup/backupscript.sh" ...
1
vote
1answer
3k views

How can I use cron-apt to download and install updates between midnight and 5am?

I have capped data which is essentially free between midnight and 5am. As a result, I would like to set Ubuntu to automatically download updates over that time. It seems that cron-apt is what I need, ...
4
votes
2answers
6k views

How to run crontab as user:www-data?

My LAMP is setup to work as user:www-data and all files and folders are created with that permissions. I have setup for crontab as user@ubuntu. So i do crontab -e and use this command: */5 * * * * ...
2
votes
2answers
360 views

rename files inside a folder in real time

Is there a way to rename files inside a folder as they're created? I could run a cron job every few seconds to do something like... find . -name "file.*" -exec sh -c 'echo mv "$1" "$(echo "$1" | sed ...
0
votes
1answer
360 views

setting up anacron for version control update

I store some of my configuration files in version control. Recently I tried to setup a daily anacron job so that I won't have to manually update the files. I have never used cron or anacron before but ...