Tagged Questions

Cron is used to execute scheduled commands. It acts as a task scheduler on Linux and UNIX systems which will execute commands at specified times set by the user. Cron has a great deal of customization and is often used on server environments where common tasks are run on a regular basis.

learn more… | top users | synonyms (2)

1
vote
3answers
137 views

Starting Rhythmbox via crontab

I'm getting tired of this issue now, because every version of Ubuntu needs to be treated in another way, but in 14.04 I don't know what to do anymore. My problem: My PC is starting automatically ...
1
vote
1answer
42 views

Stopped Jobs error upon logout

There are times when I attempt to logout of SSH and I get something along the lines of: There are stopped jobs Not knowing what this is, I end up force quitting putty with the exit button in the ...
2
votes
2answers
107 views

Cannot run a GUI app from cron

After doing a "sudo su -" on an Ubuntu 12.04 notebook I did a "crontab -e", added this: * * * * * env DISPLAY=:0.0 /usr/bin/gnome-calculator and waited for minutes. Nothing Happened. I don't have ...
0
votes
0answers
38 views

Why is my server (12.04 LTS) catching up on a missed cronjob when woken over LAN?

... or what else is happening here? My homeserver running 12.04 LTS server is running on a wake/sleep schedule. I have a script "hibernate-starter" being run by root's crontab at specific times. The ...
1
vote
0answers
41 views

syslog time is not matching cron string setup

I am running many cronjobs in my server. When I was checking the syslog file to see the cron timing, it's completely not matching. Can someone help me to understand. syslog May 23 00:00:01 xxxxxx ...
1
vote
1answer
535 views

Why did /usr/lib/php5/sessionclean run 50 times simultaneously on my 14.04 system?

When I sat down at my Ubuntu 14.04 system this morning, the root cron job /usr/lib/php5/sessionclean was running over 50 times at once, producing 50+ copies of the following commands: root 8147 ...
6
votes
2answers
1k views

Why do I see a CRON session opening and closing every hour in /var/log/auth.log?

I am quite fresh with Linux as a whole, so this may be a silly question - but I would still like to know the answer This morning when I look at my /var/log/auth.log (which I've been told to make a ...
1
vote
1answer
850 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. ...
1
vote
1answer
141 views

How to execute livestreamer command with cron?

So the other day I installed Ubuntu 14.04 LTS at home in a partition next to Windows 7. As I'm not able to be at home to watch the Sailplane Grand Prix live as streamed on YouTube, I decided to use ...
0
votes
0answers
121 views

Full Automatic Scheduled Download in Lubuntu

As the Question Said,I want to schedule daily download at night -when I'm absent- I've doing this in past (windows xp) by using wake up feature in bios and in idm set schedule task and when arrived at ...
2
votes
2answers
285 views

How to schedule a command to run a few seconds after startup?

I was trying to use @reboot /my/script in cron to run a script on a 10.04.4 VM running in VMware Fusion top print ifconfig to a file on a shared directory, which is /mnt/hgfs/somedir. It didn't work ...
1
vote
1answer
445 views

Curl request from cron job is not working,but works manually

I have a cron job that runs every minute and makes a curl request and i have verified that using grep on the syslogs. But the curl is not happening somehow and moreover i have a small echo statement ...
0
votes
1answer
224 views

update from 12.04 to 14.04, cron stops working

I am having trouble of using cron after updating from 12.04 to 14.04. here is my log: May 8 11:00:01 imanqasrina CRON[30716]: (sicksand) CMD (bash $HOME/bingwallpaper/bingPaper_v1-0.sh) May 8 ...
0
votes
2answers
30 views

Keep backing up (copying) the same file to a new folder

I am saving a stream in my HDD. I'd like to copy the file periodically into a subfolder backup such that the older versions of the the file are not deleted. Simply put Assume the original file is ...
2
votes
0answers
105 views

Tiger: `rtm` is listening on socket XXXX

On my Ubuntu serve 12.04 LTS, Tiger is reporting a lot of stuffs like this: OLD: --WARN-- [lin002i] The process `rtm' is listening on socket 60404 (UDP) on every interface. NEW: --WARN-- [lin002i] ...
0
votes
1answer
934 views

node.js app runs from command line but gives errors when run from cron job on reboot on ubuntu 14.04 LTS

When starting my app manually using forever, it works fine. It runs on localhost:8080 and nginx does the routing. When using a cronjob my starter.sh script runs but in the forever log I get an error. ...
0
votes
2answers
72 views

Why this script doesn't work in cron and generates a empty output?

Why this script doesn't work in the cron for root or other user and generates a empty output ? /tmp/test-1.log --------------- #!/bin/sh /bin/echo this is test-1.sh /bin/date "+%FT%T" Permissions ...
2
votes
1answer
115 views

Simplest MTA mail setup for a desktop to receive (ana)cron emails

Ubuntu (12.04 LTS) doesn't seem to install any sort of mailer by default. Everybody seems to recommend installing Postfix. I am familiar with Postfix, which I use on several "real" servers. But it ...
1
vote
2answers
72 views

Intermittent crontab problem

My crontab entry intermittently fails to find scripts in my user's home directory. The crontab entries run exactly on schedule as specified, and occasionally the script runs correctly, but mostly it ...
0
votes
0answers
181 views

Allow user to run programs as root without password. Would it be the correct solution to my problem?

I have a server which I need to be running certain programs permanently; I'm having problems with two of them and I'm not sure if the solution I've found would be the correct one, so I ask for opinion ...
0
votes
1answer
193 views

Upgrade to Kubuntu 14.04 Hangs at Stopping Cron

I just attempted to upgrade from Kubuntu 13.10 to 14.04 using the Muon Update utility, but after downloading all required files, the update process stalled with the message "Cron: Stopping..." After ...
0
votes
0answers
57 views

Starting services with custom xsession

I'm new to ubuntu. I've accomplished making chromium start at boot with xsessionrc file, but now I want to get a screenshot of the desktop every minute (which is just chromium basically). I've ...
2
votes
1answer
98 views

How to get a timestamp on rsync output

I have an hourly crontab job @hourly rsync -avc --delete /DirA/ /DirB/ > /home/job.txt However when I check the logbook I see no timestamps. How can I get timestamps in the log so that I can be ...
3
votes
1answer
124 views

How we can copy one file from one server to other in cron

Can anybody let me know how we can copy a file from one server to another in a cron. I know about scp but how we use it in a cron, since we need to pass the password. Edited I found this link Expect ...
1
vote
2answers
4k views

Shell script issue: cron job script to Restart MySQL server when it stops accidentally

I have this script, I am using it to setup CRON job to execute this script, so it can check if MySQL service is running; if not then it restart the MySQL service: #!/bin/bash service mysql status| ...
0
votes
1answer
598 views

Ubuntu 14.04 kworker hogging cpu; fix didn't work

Fresh install of ubuntu 14.04 on a touchscreen Toshiba Satellite laptop with intel graphics. I tried to follow the fix here: Why does kworker cpu usage get so high? It didn't work; my problem seems ...
1
vote
0answers
121 views

PPTP won't connect from a cron command

I'm trying to work out why my VPN won't connect when the command is initiated from a cron triggered script when that same script and command otherwise work as expected. I have a remote server which ...
0
votes
1answer
48 views

Command to find how much data was transferred from USB

How can I create a cron job that runs every minute and logs how much data was transferred by USB? Ideally I want log of amount the data in bytes transfers done. For example if i tranferred 4mb file ...
0
votes
1answer
810 views

Why crontab doesn't want to execute the job as root?

I'am using the Ubuntu 14.04 (Trusty) version and i get a problem with my crontab (it was working before 13.10) Here is the command line /usr/lib/cgi-bin/awstats.pl -config=www.skrik.fr -update ...
0
votes
0answers
32 views

crojob not recognizing ip command

I have this script to gather data trx rates. If I run this script normally, it executes fine. However, If I add this to cronjob to execute every hour, I get an error in the /var/log/ SERVER=`hostname ...
0
votes
0answers
108 views

wrong file owner

Syslog displaying the following: 04/06/14 05:16:01 PM loren-laptop cron[986] (system) WRONG FILE OWNER (/etc/crontab) /etc/crontab displays: Owner Me Is this a problem that requires fixing?
0
votes
1answer
59 views

Crontab backup not working (not generating log)

I want to run a script every day at a certain hour, so I saw that I could use cron for that. Following the tutorial, I edited the crontab file like this: crontab -e and added: 26 13 * * * ...
0
votes
0answers
46 views

Why cron.weekly started apt-xapian-index at 11AM instead of between 2-4AM?

I have redifined staring hours in /etc/anacrontab and /etc/crontab like following: --- my changes: 17 * * * * root cd / && nice run-parts --report /etc/cron.hourly 25 3 * * * ...
0
votes
1answer
51 views

Execute script when disk space is low

Is there a smart way to execute a script when disk space is low? I know I can manually check disk space, but it seems like a common problem to want to delete log files when disk space is low (for ...
1
vote
5answers
954 views

crontab not running as root

Mysql backup scripts not running as root crontab - help I'm trying to run a crontab as root but the script is not running successfully. I can see in syslog that the script is executing but it does ...
0
votes
0answers
42 views

Anacron and suspend

Does an cron task, that is run with anacron run even when my system is suspended? I know that anacron will run a job regardless of whether my system is on or off, but I thought that the jobs get ...
0
votes
0answers
53 views

Poor battery life: cron jobs running even in suspend

I was trying to figure out why my battery was dying out really fast even when in suspend mode. I noticed that my cron jobs run even when my laptop is suspended. I do not want this behavior. Cron ...
0
votes
1answer
45 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
1answer
97 views

Why do I get an error saying I must be privileged to use `crontab -u`?

I am trying to list all the cron jobs for all the users in my Ubuntu system using the following command: for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done Why am I getting the ...
0
votes
1answer
3k views

sm-msp-queue says: unable to qualify my own domain name (xxx) — using short name

Every 20 minutes, for days, sm-msp-queue (something related to sendmail, I guess) writes a message in my ubun that goes like that: unable to qualify my own domain name (ubun) -- using short name ...
4
votes
1answer
77 views

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 loads. We have chased this problem down to cron and sendmail. Adding MAILTO="" on top of ...
1
vote
0answers
157 views

xprintidle doesn't work in cronjob. Why?

I have lxle (Lubuntu) 12.04 installed and I spent lots of time looking for working solution to make PC shutdown after some period of idle state. After checking many programs which haven't worked I ...
0
votes
0answers
51 views

Auto update in ubuntu 13.10 desktop

My question is very basic and foolish one.I installed ubuntu 13.10 desktop 32 bit. Now I want auto updates of security. I visited this Ubuntu help page. But I waited whole day to see whether my ...
1
vote
0answers
19 views

Any reason why Ubuntu's man page on crontab(5) is less informative?

Why is the man page for crontab(5) at manpages.ubuntu.com less informative than corresponding man page at linux.die.net? Compare The "sixth" field (the rest of the line) specifies the command to ...
1
vote
1answer
125 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 ...
4
votes
2answers
231 views

What does this (root) CMD line in system.log mean? Why is it there?

What does it mean? (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin ...
1
vote
2answers
51 views

What does this mean in “crontab -e”?

When I run crontab -e, I see this bit: Notice that tasks will be started based on the cron's system daemon's notion of time and timezones. How to convert the cron's system daemon's notion of ...
1
vote
1answer
371 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 ...
0
votes
1answer
83 views

Deja-dup cannot access Truecrypt volume when run from Cron

I have a deja-dup set up to backup into a mounted Truecrypt volume. It works fine but now I would like to run deja-dup in my own intervals via Cron (set up for my account): * * * * * env DISPLAY=:0 ...
3
votes
1answer
230 views

Using a cronjob to clean /tmp

Is it save to use bash script and a cronjob to remove all files in /tmp? Or should I do this differently for other reasons, maybe?