Questions tagged [cron]

Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates.

For information about the most common cron issues and how to fix them, see Why is my crontab not working and how can I troubleshoot it.

1957 questions
0
votes
1 answer

Cron environment inconsistency

I've seen some inconsistencies between the cron environment and my environment. For example, I have installed paver (pip install paver) in my environment and calling paver works paver. Using paver in my cron doesn't work command not found.…
AsTeR
  • 257
  • 4
  • 13
0
votes
1 answer

Adding OpenVPN client connection to cron

I wrote simple server-client OpenVPN config files: server.conf dev tun0 ifconfig 10.8.0.1 10.8.0.2 client.conf dev tun0 ifconfig 10.8.0.2 10.8.0.1 remote 192.168.0.123 which basically is a cleartext OpenVPN tunnel - for now on its ok to me, I just…
mirx
  • 159
  • 2
  • 9
0
votes
2 answers

How to automatically send email when process is using more than xxxMbit/s

I haven't found anything for that. How could I automatically send an email (via crontab) with the ID of the process, the user & finally what's the name of the process for example when this process is using more than 100Mbit/s of bandwidth (or 10k…
0
votes
1 answer

Windows Scheduled tasks ends prematurely, so server doesn't run

I'm trying to run Django on my Windows Server 2008 machine. I can do this manually by calling python manage.py runserver 54321, which launches Django's server at http://127.0.0.1:54321 -- then I can use reverse proxy in IIS to feed the site through…
0
votes
2 answers

Compress and remove logs from jboss on linux with cron

I need to compress and remove log files after some time from serwer. I have never write scripts before. So far i have script logs.sh:…
user2377971
  • 101
  • 1
  • 3
0
votes
4 answers

is there a command that automatically downloads files from server?

I am using crontab along with mysqldump command to take my db backups once in 2 days.I need to download these files from the server to my pc..can i automate this download process too using some command??Please help me..Thanks in advance.. My pc is…
kahoko
0
votes
1 answer

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 when doing this? My understanding is based on this…
Jon
  • 161
  • 2
  • 3
  • 11
0
votes
2 answers

Why unison does not run in cronjob?

I want two way data sync between two CentOS based servers, so I installed Unison on both of my CentOS servers. I made a script file on root which runs unison and works fine, and syncs the files, when I run it from terminal. When I put that script in…
Mujtaba Haider
  • 131
  • 1
  • 7
0
votes
2 answers

Cronjob screen PHP does not executed

If I execute the following in the terminal it works: screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon If I write the following in a Crontab (crontab -e) and restart the machine nothing…
Franz
  • 1
0
votes
1 answer

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

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 easily? I could use s3cmd/s3sync for the uploading,…
sventechie
  • 119
  • 1
  • 9
0
votes
1 answer

cron to anacron migration process

I have a script that I want to run nightly on my lab's RHEL 5 and 6 workstations, so I'm deploying the script to each system's /etc/cron.daily/ directory and making it executable there. But some workstations may not be powered on at the time when…
Gestellen
  • 35
  • 1
  • 7
0
votes
1 answer

Why is cron using a different Ruby than my user and how to fix it?

I have a cron job that is a Ruby script. The problem is that the ruby executable is different than expected. Ruby was installed from source so it should be the new global default. $ ssh root@example.com root@example.com$ ruby -v ruby 2.0.0p247…
Andrew
  • 3,453
  • 9
  • 33
  • 36
0
votes
0 answers

need at jobs identified by name (advanced atd daemon)

Sometimes I'd like to delete or overwrite (or simply cat) an at job. Unfortunately, the at jobs are identified by a sequential number (file in /var/spool/cron/atjobs), which makes those operations complicated. Is there a way, probably an advanced…
stoqlt
  • 81
  • 1
  • 5
0
votes
1 answer

Unable to get cron to append output from wget

I have a cronjob setup and running, but the logfile keeps getting overwritten every time it runs. I would like for the wget output to be appended each time the cron runs. Why is this and how do I fix it? 0 0 * * * wget url/script.php -O - >>…
doremi
  • 231
  • 3
  • 11
0
votes
1 answer

(bsnmpd), uid 0: exited on signal 6 (core dumped) / Syntax error: word unexpected (expecting "then")

I'm using FreeBSD 9.2-RELEASE: # uname -a FreeBSD f9.alexus.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 # every once in a while bsnmpd(1) is…
alexus
  • 13,112
  • 32
  • 117
  • 174