-2
votes
0answers
31 views

Cron job is occupying my server [closed]

I wrote two PHP scripts. First one is adding users to one another system calling its API functions. Another script is connecting to FTP, downloads the file, and analyze it. Tuesday I scheduled two ...
0
votes
1answer
33 views

Secure way to have a user that can move and change files in a FTP folder structure?

We have an FTP where customers can drop their files. We want to run a script that sweeps the files out of the folders every 15 minutes. The current permission and folder structure looks like this: ...
1
vote
2answers
41 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
11 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
0answers
42 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. ...
-1
votes
2answers
53 views

Cron to do a backup and automatically send it to dropbox [closed]

Is there a way to send backups to Dropbox (tar & send)? I bought a plan there and was thinking to save some money dropping Amazon S3 (that I'm using for backups). I'll have to manually delete old ...
0
votes
1answer
93 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
91 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
74 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 ...
1
vote
2answers
40 views

Exporting paths and configs in ubuntu

I am trying to add some exports using the following method: # SETUP CONFIGS sudo bash -c "cat >> /etc/bash.bashrc" <<'EOF' export AWS_CONFIG_FILE=/etc/test/aws.txt export ...
0
votes
3answers
70 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
268 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
89 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 ...
1
vote
1answer
61 views

How to I get rsync to exlcude a file pattern within an flock?

I have an rsync command that I run hourly via cron, and to prevent it from having multiple simultaneous rsyncs (should the previous hour's rsync still be running when the next hour comes around) I've ...
0
votes
1answer
44 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
67 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
43 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
197 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
133 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
65 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 ...
-5
votes
1answer
153 views

Auto-Reboot Linux Server if CPU usage reaches a certain percentage [closed]

As the title implies, my question is there a way I can reboot my server automatically if CPU usage reaches a certain threshold? I'm using a Linux + Ubuntu 9. I've been looking for some kind of ...
0
votes
4answers
118 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
551 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
195 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
41 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
58 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
0answers
19 views

Direct Cron output to external email address [duplicate]

Possible Duplicate: Outgoing mail from linux not being delivered I've got an Ubuntu server with the hostname node1.mydomain.com. I have mydomain.com set up with Google Apps for email, and ...
0
votes
1answer
137 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
137 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
1answer
296 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
107 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 ...
0
votes
1answer
471 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
87 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
108 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
262 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
255 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
329 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
592 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?
0
votes
1answer
597 views

PHP Cron - Max Allocation?

I'm getting email errors from a cron, on Ubuntu, that lives at: /etc/cron.d/php5 I didn't install that cron, so I'm guessing it is installed with PHP. Its contents are as follows: # ...
1
vote
0answers
174 views

Why are my PHP5-FPM pools disappearing mysteriously every couple of months? (Ubuntu 11.10, PHP 5.3.6)

I have a system where each user (about 20) gets their own instance of nginx and their own small pool of PHP5-FPM processes. A front-end nginx instance proxies requests to the appropriate nginx ...
0
votes
1answer
249 views

ubuntu crontab -e “/usr/bin/sensible-editor” killed; signal 9 (no core dumped)

Welcome to Ubuntu 11.04 (GNU/Linux 2.6.32-042stab037.1 x86_64) user@server:~$ crontab -e no crontab for user - using an empty one Select an editor. To change later, run 'select-editor'. 1. /bin/ed ...
0
votes
2answers
94 views

Crontab crash when running a script that insert a lot of lines in MySQL

My crontab is crashing when I run a script that inserts a lot of lines on MySQL Database, but when I run a script that inserts a few lines it runs properly. Is there some configuration file of cron? ...
0
votes
1answer
178 views

Crontab have permission issues on file of its owner? Permission denied

I have a very simple cron job written in shell script, which scp a file from another server to local. e.g, #!/bin/bash scp $REMOTE:/$FILE ./ Of course, the server need a private key to login, ...
2
votes
2answers
900 views

Do I need to refresh or restart anything after I add/update a crontab in Ubuntu Server 8.04?

When you change something in Apache you need to reload or restart apache. Does anything need to be refreshed or restarted in Ubuntu Server 8.04 after I add/update the crontab? Thanks a bunch for your ...
0
votes
1answer
293 views

Ubuntu - execute batch script after finishing ftp copy

I have a process that starts with an end user copying picture files to a Ubuntu folder over ftp using filezilla software. On the other hand I have a batch file that gets executed using CRON it is ...
0
votes
3answers
216 views

throttle cpu usage for a cronjob

I've got a cronjob that is basically nothing more than mysqldump whatever | gzip > backup.sql.gz. The database is fairly big. I've noticed that while the job is running, my apache is much less ...
0
votes
1answer
105 views

How to run the cron job as a user instead of root user

I have few bash scripts which are adding to cron jobs with specified timing, but it needs to be executed as root user. I am trying to run those scripts i.e., crob jobs but it needs root user ...
0
votes
2answers
494 views

How to take mysql dump of the mysql db every hour

hey I am newbie to scripting in linux.I want to take a sqldump of my database every hour, I have gone thorough couple of blogs i was able to write a script which will take the dump of my database but ...
1
vote
2answers
201 views

Crontab doesn't start, no errors

I have the below crontab configuration ; 45 9 * * * sh /home/renko/mysql.backup.sh > /home/renko/mysql_back_log.log And my script is as below ; #!/bin/bash ### Backup Folder dir ### ...
4
votes
2answers
729 views

My cron tasks report command not found

This is the contents of my crontab file: 0 0,6,12,18 * * * cd /var/www/app/current && backup perform --trigger db_backup --config_file config/backup.rb --data-path db --log-path log ...

1 2 3