-1
votes
0answers
12 views

Crontab inscreen command and outsreen command [on hold]

I have a ubuntu linux server and on that I have a minecraft server. At the startup he starts the minecraft server and he restarts every 6 hours. What I have now is that the server forced stops and he ...
1
vote
1answer
55 views

Weird syslog order

Have you ever seen wrong order in /var/log/syslog ? I think that it causes only crontab. Jun 28 22:20:01 alex CRON[2327]: (root) CMD (something > /dev/null) Jun 28 22:21:01 alex CRON[2700]: (root) ...
-1
votes
0answers
14 views

crontab: command not executed [duplicate]

I have a strange issue with running sh scripts via crontab. I set up a cron job using crontab -u user1 -e After it I'm checking var/syslog and see: Jun 18 22:00:01 localhost CRON[15902]: (user1) ...
0
votes
1answer
20 views

Ubuntu 10.04 cronjob with curl dosen't work

I would like to execute some php script via cron job i have curl, crontab installed, but the cron job dosen't run/create any log file. crontab -l * * * * * curl ...
0
votes
0answers
43 views

Strange behaviour with cron script not running [duplicate]

I recently stumbled upon a strange issue with cron on Ubuntu 13.10. I have a Ruby On Rails rake task (background task) that needs to be run on Cron every 3 minutes. So the script itself works and ...
6
votes
3answers
304 views

Crontab job dependency to prevent race [closed]

I want to run a cron every 5 minutes, but I don't want the next cron to run if the previous did not finish yet. What can be done about this? Are there any tools to support this? Thanks
0
votes
1answer
62 views

Change cron.daily run time on ubuntu

Am I correct in understanding that to update the time that a daily cron job runs (from /etc/cron.daily/), all I need to do is update the /etc/crontab file? Are there any risks I should be aware of ...
1
vote
1answer
131 views

Issues with MySQL restart on running through a crontab scheduler

I have written a shell script which starts MySQL when its killed/terminated. I am running this shell script using a crontab. My cron looks for the script file named mysql.sh under /root/mysql.sh ...
0
votes
1answer
88 views

How can I control a gradual file upload with cron or similar? [closed]

I have several terabytes of data I need to back up to S3/Glacier over a slow link. I want to upload from, say 9pm to 9am and resume from where it left off. Is there free software that would do that ...
4
votes
1answer
112 views

Why is crontab file periodically overwritten?

I have a Ubuntu 12.10 server with an nginx user that I use to edit a crontab file. Periodically (maybe once every few hours? it's hard to tell), I notice that edits I have made as the nginx user have ...
-1
votes
2answers
96 views

running a cron job on a time interval [duplicate]

Is it possible to run a job for 2 hours at a specific time? So lets say I want to run wget command that calls/hits an endpoint in my web app for 2 consecutive hours in a day. Meaning that every single ...
1
vote
1answer
82 views

dhclient asking for new routing every 1500 seconds, removing my static routing, cron not working

I have a problem with cron job on my ubuntu server 12.04. I have two internet providers - one for fast speed, second - for local resources. So, I'm using command route to up the static routing for ...
2
votes
2answers
864 views

Setting timeout for cron jobs

Do Ubuntu Linux cron (Vixie cron?) support setting timeout for its jobs? Specifically, the process would be killed after X seconds unless it finishes successfully by then. I have had some cases ...
0
votes
1answer
206 views

Why won't this shutdown shell script work under root's crontab when the guest user is logged in? [closed]

I've got a laptop running Lubuntu 13.04 and guest account enabled. People forget to shut it down every day so I figured I'd just put a one line script into root's cron to solve that. No dice. It shows ...
1
vote
2answers
145 views

crontab failing to start service via working script

My script works when ran by itself but not via crontab Crontab [root@someserver:/]# crontab -l SHELL=/bin/bash ...
0
votes
2answers
737 views

Ubuntu Crontab or init script startup [duplicate]

What am I doing wrong here with cron on boot? Example: To launch manually: screen -S example ./script.sh To recover manually: screen -x example now, I just try to do the same thing (well, the ...
0
votes
3answers
329 views

script PHP doesn't work in crontab [duplicate]

Good morning, I have into my ubunut server a script that check into a database some value and if the condition is true send some email. If I launch into the browser the script like: ...
-3
votes
1answer
25 views

cronjob every sunday of the week [duplicate]

Hi all I have an ubuntu server where I want to create a cron every sunday al 23:00 I have read manual and I have try to use some cron generator. I have tried in this mode: 0 23 * * * root test.php ...
1
vote
1answer
39 views

Setting up a new job using ubuntu's crontab [duplicate]

I have little experience with setting up cron jobs. I need to configure a cron job to delete all files starting with the filename 'sess_' from the '/tmp' folder every hour. If I fire up the crontab ...
1
vote
2answers
111 views

Which user should cron jobs run as?

Ubuntu server with users root www-data mywebsite1 mywebsite2 There are multiple websites hosted on this server, each with their own user. Each website has their own cron jobs mostly ...
0
votes
1answer
20 views

Ubuntu Server scheduleing a cron job not working

I am trying to schedule a cronjob on my ubuntu server through SSL. I ran the command: sudo crontab -e Then once it created a new file for my user, I put : * * * * * php /etc/php5/apache2/php.ini ...
1
vote
1answer
164 views

What could cause a PHP script run as a cron job to end up in D state?

My server is running Ubuntu 12.04 LTS (precise) and I'm having a weird issue. The server is hosting a large website which is used for data collection. The website is in PHP and uses Zend Framework. ...
0
votes
1answer
193 views

Why this command does not work from cron.daily file?

I have a file in cron.daily: root@nagios.example.com:/# cat /etc/cron.daily/nagios-logs /usr/bin/nice -n 19 /bin/gzip --fast /var/log/nagios3/archives/* root@nagios.example.com:/# ls -l ...
3
votes
2answers
618 views

Why this script in cron.daily won't run?

I wrote this small Python script to make daily backups of a directory containing some files (the backups should rotate after one week). This is it: $ cat /etc/cron.daily/file-store-backup.py ...
0
votes
2answers
399 views

Crontab on Ubuntu Server 12.04 doesn't run as it should (PHP script)

I have a PHP script which downloads and manipulate an image from some server and then saves it locally. Because image is update every 5 minutes I want to download and save that image every 5 minutes ...
0
votes
3answers
962 views

Cant run rc.local manually and doesn't run automatically on ubuntu

This is quite a simple one. I created an rc.local file here: /etc/rc.local I made it executable. However, it doesn't run when I boot the server. I can see it in the directory and when I try to run ...
5
votes
2answers
853 views

Running script in Crontab every 3 days once

I have some Perl scripts which needs to be runned every 3 days once, The following is syntax which I have entered, Can you please let me know, Is this correct or wrong. 30 19 * * */3 root ...
1
vote
0answers
403 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
0
votes
1answer
68 views

cron job failing silently

I have a cron job scheduled to run under the root user, but it is silently failing. The command calls a php script which among other things runs mysqldump via exec, this dump is not being created. ...
0
votes
3answers
80 views

Can't figure what's wrong with with my crontab

Due to some bug in one of my scripts i'm being forced to delete temp files every 30 minutes until i'll figure it out and debug it. To get it done i've written a small bash script that i run every 30 ...
1
vote
1answer
52 views

Ubuntu 11.10 Cron Job fails With - Not Found

I have a script that is supposed to run hourly. It was working fine for a while and then it seemed to stop working after some system updates were applied. At that point it stopped working and ...
2
votes
1answer
751 views

Cron jobs running twice - Ubuntu server 12.04

I have a couple of simple cron jobs running under root. However, they seem to be running twice, and I can't figure out why. No other users have any cron jobs running and the the only cronfile is for ...
1
vote
2answers
348 views

How to schedule job to run on Linux/Unix only when system is idle?

How do I schedule a job to run only if the system is idle? E.g. I want to run some cleanup task every week, but only if it does not interfere with other users. I know I can schedule a task to run ...
-1
votes
2answers
81 views

Where is the cron job?

I work with linux servers at my job. Previously there was an engineer that set up our PBX servers so that they send a call to land line phone. It does it every hour. I have been looking for that ...
0
votes
4answers
143 views

Assigning environment variables for CRON

I have a .sh script that creates a .tar.gz file and transfer's it to a remote server using RSA keys for authentication. The script will run from terminal but it will not when I try to set it up as a ...
3
votes
2answers
2k views

How to run a daily cron job? [nginx] [duplicate]

Possible Duplicate: How to run a cron job? Server: nginx/0.8.54 OS: Ubuntu 11.04 Host: Rackspace UK Cloud Access: Full Root etc I have a PHP script in my cloud server: ...
2
votes
1answer
701 views

Adding file to /etc/cron.d doesn't make it run (ubuntu 10.04)

If I scp a cron file into /etc/cron.d it doesn't run unless I edit the file and change the command. Then crond seems to pick up the cron file. How can I make cron reload its cron files in ubuntu ...
2
votes
1answer
46 views

Capturing output of 'at'

How can I log the output of a command executed by at? This command is actually being exec()'d by PHP as in: <?php exec('echo "curl -k https://localhost/projekt/crons/purge/5" | at now + 5 ...
1
vote
1answer
78 views

export Usenet via IMAP or POP3 [closed]

Which existing software has this capability? I see that news deliver will send notification of usenet posts via e-mail, but is there software which will e-mail the actual usenet posts? Something ...
0
votes
1answer
189 views

Sending mail to cron connects to the wrong IP

I'm running a server with Ubuntu 12.04 and we have some cron jobs that generate emails we want to receive. For handling that and other mails like that, I installed postfix and configured it to only ...
4
votes
2answers
193 views

smart to run crontab -e at root account

I need to set up cron jobs in ubuntu server. I always use crontab -e at root. I make sudo su - to login as root and then use crontab -e. But today I heard that is not smart to use cron jobs as root ...
0
votes
2answers
672 views

Email is not sending when the script is running by CRON

I wrote the simple backup bash script and at the end of it, it's sending an email to me that backup is ready. Everything works perfect when I run this script from terminal (root), but when the script ...
0
votes
1answer
128 views

Cron job not running

I have a python script running as a service on Ubuntu11.10. I need to stop the service and then restart it again every 6 hours. I wrote the cronjob and just to check its working, i am stopping and ...
1
vote
1answer
644 views

Configure CRON to use a particular MTA

I have one server on which cron jobs are ran. I don't want to install sendmail or postfix on this server but still want to get mails from cron. I have installed Heirloom mailx ...
-3
votes
1answer
141 views

Daily Cron Job Example

I want to run a command daily on an Ubuntu Linux box @ 9:15PM. Is this the correct entry for my crontab? 15 23 * * * <<command>>
0
votes
1answer
121 views

Virtual server (VM) running Ubuntu re-configures itself?

I'm helping to administer a VM running Ubuntu with Media Temple. The hostname was changed, and sendmail was removed and replaced with exim4. To change the hostname 'sudo hostname newhostname' was ...
1
vote
2answers
416 views

script to remove all files in /tmp from a certain user

One of my server daemons uses a lot of space in /tmp. Because I don't want to reboot my machine when the server runs out of disk space, I need to run a CRON script that removes old temporary files. ...
1
vote
1answer
327 views

Shutdown script

I am using Ubuntu 11.10. I would like to make a shell script that shut down computer if nobody logins for an hour. But if somebody logins (locally or with remote SSH connection), then i don't want ...
0
votes
1answer
520 views

Cron, chroot, jails, and permissions

I'm trying to grasp how to run crons under chrooted users. I'm on Ubuntu, and using ISPConfig where I can. I created a cronjob in ISPConfig which resulted in a file /etc/cron.d/ispc_chrooted_web1 ...
0
votes
2answers
1k views

ISPconfig and running cron jobs as root

IPSConfig runs cron jobs as root. And when adding new cron jobs in ISPconfig it sets them to also be run as root and I don't see any way to change it. Is this safe?