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 opens and closes sessions continuously

I'm seeing a huge amount of these lines in my auth logs: Dec 31 03:45:01 xxxxxxx CRON[17259]: pam_unix(cron:session): session opened for user root by (uid=0) Dec 31 03:45:01 xxxxxxx CRON[17259]: pam_unix(cron:session): session closed for user…
MultiformeIngegno
  • 1,687
  • 9
  • 26
  • 31
0
votes
1 answer

linux cron mysqldump: php exec() vs shell script vs direct command in crontab

The system is running CENTOS 5.8, Apache 2.2.3, MySQL 5.0.95, PHP 5.3.3 We run mysqldump daily for a few databases. It's run via a php script called in crontab. They are run at the same time and cause a spike in the server load. So I'm going to…
codewaggle
  • 247
  • 1
  • 4
  • 11
0
votes
1 answer

How can I find a cron job that is causing a huge spike in CPU and Network

Everyday at 4am my linode graphs shows a huge spike in CPU, Network, and Disk IO. The CPU spikes to 45%. How can I find out what is causing this? I took a look in /etc/cron.daily/ but there are a lot of items in there, and I'm not sure how to see…
Errol Fitzgerald
  • 475
  • 1
  • 8
  • 17
0
votes
1 answer

what does the --backup-mode option for rdiff mean?

I've got rdiff-backup up & running nicely using cron jobs over SSH between two VMs (my webserver and a backup space), using scripts put together from various places online. I'm backing up various folders, including database dumps, /etc and /var/www.…
0
votes
3 answers

Hidden Cron in the Webserver cant find out where its located ...?

in my dedicated server i have i have hidden cron job (one of the cpanel user account is using) running which is not showing up anywhere (installation is based on cpanel/whm) first i had a look at the crontab -e to see if there no its not there, …
mahen3d
  • 4,342
  • 14
  • 36
  • 57
0
votes
1 answer

Parenthesis in cronjob results in error

I am trying to run the following cronjob and I am getting the following error: /bin/sh: -c: line 0: syntax error near unexpected token `)' for the line: mysqldump --opt -Q -h localhost --user=my_username --password=pass)word db_name | gzip -v9 - >…
Kyle
  • 111
  • 3
0
votes
2 answers

Bash script getting automatically deleted from Ubuntu 12.04 Server?

I'm running a bash script on an ubuntu 12.04 through cron. The script works fine for a few weeks (runs daily backups of websites, mysql databases, and copies to Amazon S3). However, twice now I've noticed that backups stopped happening. Both times…
0
votes
1 answer

SFTP download the files and then i wanted rename the server files how to do this?

I have to setup with the banking interface where I need to connect to the remote bank and then download the files in the bank server in-box to my local server for further processing so i do following sftp commands in the crontab sftp -b…
mahen3d
  • 4,342
  • 14
  • 36
  • 57
0
votes
4 answers

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 Cron job. I receive an email from the Cron Daemon…
Ríomhaire
  • 103
  • 3
0
votes
1 answer

let CRON send emails through SMTP ( debian squeeze )

i would like to send emails whenever a cronjob has completed, i read that this is possible with exim4. in /etc/alias i added the line myuser: mygmail@gmail.com in /etc/exim4/update-exim4.conf.conf i set dc_smarthost='smtp.myserver.ip::25 and in …
supernova
  • 233
  • 4
  • 10
0
votes
1 answer

Cron for a user not working in Plesk 10/11

I'm having a strange problem with plesk and I can't seem to find an answer anywhere on the official support, so I hope somebody here can shed some light. I'm simply trying to run a script via cron using the 'scheduled tasks' in the user control…
Codecraft
  • 283
  • 2
  • 5
  • 15
0
votes
2 answers

Crontab failing silently for one task but can't reproduce by running same command

I have a cron job that runs a django management command that clears my mail queue. It turns out it wasn't sending, and several thousand customers had not received emails. Any ideas what's going on here? I have this line in my crontab (and has been…
Yuji Tomita
  • 463
  • 1
  • 3
  • 15
0
votes
2 answers

Linux - regularily moving directory contents

Collaboration partners of our company will upload files (typically a few GB in size) to a directory on one of our external servers. From that directory, I will move them to our internal network, where they will be ultimately consumed by our…
Nils Landt
  • 143
  • 4
0
votes
1 answer

Pause cronjobs for an account (WHM/cpanel)

Is it possible to stop all cronjobs for a particular cpanel user? The cronjobs should be resumable when required later. There are several hundred cronjobs running under this user. Only this user's cronjobs should be paused/suspended.
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
0
votes
4 answers

Redirect Cronjob output to an running screen session?

Is it possible to start a screen session, set up an cronjob, and redirect the cronjob's output to the screen session? Would be great to follow the programm's output ;-) Greetings....
Max
  • 465
  • 2
  • 6
  • 11
1 2 3
99
100