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 stopped working, partially working.

Our cron script stopped working in different dates in August. What can be the possible reasons? We did not change anything. Our hosting showed us a log where we can see that cron is executing our scripts. But, nothing is happening in our…
Robi
  • 131
  • 1
  • 6
0
votes
2 answers

How to know, from what user cron execute task?

When I want to see tasks from root, it say "no crontab for root". I need to find all tasks from all users, and then I will fix bug in it (I don't know where that task is). How can I find user name? Redhat Enterprise.
nkuhta
  • 101
  • 1
0
votes
2 answers

How can I create a bash script for MySQL status/replication that only notifies of failure once per hour?

I am using CentOS 6.2. I followed Alex Williams guide to configuring MySQL through HAProxy found here. Instead of having HAProxy check the status of MySQL and replication, I have the scripts running once a minute in crontab. If either of them fails…
Joe Gibson
  • 45
  • 8
0
votes
4 answers

crontab added line gone, but script is scheduled

I have a strange thing (i think), I added a line in my crontab on an QNAP NAS with crontab -e i saved (:wq!) This line would have had a script to run for every 5 minutes so i dit 5 * * * * and the script name. And restarted the crontab. This script…
Plumbum7
  • 3
  • 2
0
votes
1 answer

Automate verification of script generated emails

We have over 100 servers that generate hundreds of emails every day using scheduled scripts (cron jobs) when the system/data is backed up or any other activity takes place. The email is sent to our network admin group, so a few people receive them…
ashvagan
  • 23
  • 1
  • 7
0
votes
1 answer

Getting cron to start Redis on reboot

I am trying to get Redis to start every time my system reboots to make sure that the cache are availables to my webserver. What I did is that inserted the following line in my crontab: @reboot redis-server /path/to/redis.conf After rebooting my…
Régis B.
  • 193
  • 1
  • 13
0
votes
2 answers

Linux CentOs 2.6.18 Setting locale for cronjobs

I have the problem, that I am trying to automate some Informix database job via the crontab. The job runs fine when done via the command line or processed via the at queue, but not via the crontab. The informix error "-23191 Unable to load locale…
weismat
  • 343
  • 3
  • 16
0
votes
3 answers

Automatically power down home GNU/Linux server after 30 minutes of inactivity

I'd like my home GNU/Linux server to power down after 30 minutes of inactivity. For "activity", I'm thinking any new [CUPS] print jobs any requests to a locally running Apache server any activity over SSH except for failed logins If any of these…
Adam Monsen
  • 725
  • 1
  • 7
  • 24
0
votes
2 answers

splitting crontab into several files under FreeBSD

Using FreeBSD 9, I would like to know what is the good way to split /etc/crontab into several files. For example, I would like to put all postfix related jobs in /etc/cron.d/postfix, all logrotate related jobs in /etc/cron.d/logrotate and so on. Of…
user130370
0
votes
1 answer

smbd has to be restarted on boot

For some reason, smbd never seems to start correctly when the server starts. Simply calling /etc/init.d/smbd restart works great, but is there a way that I can either fix the underlying issue or add /etc/init.d/smbd restart to a cron? I just can't…
bswinnerton
  • 121
  • 2
  • 6
0
votes
1 answer

Cron task failing on specific job

On my server I am getting the following error when running one of my cron tasks: CRON[9913]: (CRON) error (grandchild #9915 failed with exit status 127) The server is running Ubuntu-1104-natty-64-minimal. I am using the Whenever gem along with the…
dannymcc
  • 2,717
  • 10
  • 48
  • 72
0
votes
1 answer

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 listen on localhost since I don't want random…
Pablo Fernandez
  • 7,438
  • 25
  • 71
  • 83
0
votes
2 answers

Using crontab to delete tmp folder files created by apache user

Currently I have it set up such that users can download zip files from my site, and they're stored in /tmp/zip_file_dir/. The PHP script first downloads them from my CDN using ftp_get() and then places them in that folder such as…
joshholat
  • 193
  • 1
  • 6
  • 12
0
votes
2 answers

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 is running by CRON, email is not sending…
badam
  • 101
  • 1
  • 1
0
votes
1 answer

Elastix, how to MOVE files from one server to other server?

In my office, i have to schedule for moving a file from one computer to other computer (Both are using Elastix). My idea is using cron, scp, and rm to do this. So here are the script that i use: scp -r /home/data/* root@192.168.1.2:/home/data1 && rm…
yudayyy
  • 3
  • 3
1 2 3
99
100