Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
25 views

cron job gives me permission denied errors when running

Been trying to run a cron but keep getting permission died error in my /var/spool/mail/root "/bin/sh: /disk1/archives/backup.website.cron: Permission denied" This is my ls -hal for the directory my ...
2
votes
2answers
41 views

how to setup a cron job and using the proper syntax in my jobs

I want to make a cron job that creates a tar of my web directory. I have this job in place * * * * * tar -zcvfp /disk1/archives/websites/`date +%Y-%m-%d_%I-%M-%S-%p`/`date ...
0
votes
2answers
49 views

How can I prevent cron from filling up my root partition?

I'm using cron tasks every 3 mins, the result is logged in my cron.log. Also after executing (wget) certain php file, it's name (with 0 bytes filesize) is copied to root, spaming it - see the figure ...
0
votes
2answers
81 views

linux crond not working

I have a cronjob which for creat thumbnails. the folder /var/www/html/work/ has permission 744(I think 744 is more safe than 777) Crontabs * * * * * /usr/bin/php /var/www/html/work/images.php php ...
6
votes
2answers
244 views

Is it bad to edit cron file manually?

It is usually instructed to introduce new cron jobs through command lines; but I found it easier (with a better control of current cron tasks) to manually edit (in text editor) the user cron file like ...
0
votes
1answer
43 views

How to give permission to an account to reboot server?

I use centOS 5.7 and I need an account I have on the server to be able to reboot the server. How do I do this? Should I maybe be worried about security issues with this? The reason I need it...I ...
0
votes
0answers
56 views

Scheduled restart for mysql cluster

I have a 3 nodes, 1 replica ndb cluster and I need to restart all the nodes periodically. What do you suggest? What I need is a cron job that will do what I do with connectiong ndb_mgm and calling ...
0
votes
1answer
131 views

Cron not able to find correct versions of ruby and bundler gem

I have cron running for rails application on EC2 instance, but it fails with error - /bin/bash: bundle: command not found if I run bundle command with ubuntu user or sudo user that works. I have ...
1
vote
1answer
29 views

Check if cron ran and have fallback

I have written a realtime bus tracking program that runs a cron every minute to check the service of the bus. In order to remove some server resources I am going to be creating an instance on PHPfog ...
0
votes
4answers
54 views

easily enable or disable cron

Whenever I need to enable crons, I will copy the cron file to the spool folder. cp /home/shantanu/shantanu /var/spool/cron/ chown shantanu:root /var/spool/cron/shantanu Will this work? Any issues ...
0
votes
1answer
80 views

shell script within crontab

I can run the following shell script from command prompt as expected: /bin/sh -xv /home/shantanu/backup_transfer.sh But when I set it in a cron, it does not execute correctly. There are 2 ...
2
votes
2answers
76 views

How To Backup “crontab -e” Files?

I want to do a complete server backup. I already have my backup script copying all of the html/php files for the web app, and the mysql databases, placing them into a .tar.gz file. How can I add the ...
1
vote
4answers
463 views

How can I keep my server from being clobbered by zombies from this Ubuntu cron job to remove PHP sessions?

I recently noticed when I logged in that I had several thousand processes marked "zombie". Upon further investigation, I found the following from ps fax: 701 ? Ss 0:28 cron 3363 ? ...
0
votes
2answers
62 views

Setting up Cron Jobs as Root

I can run cron jobs manually like this root@myhosting [~]# sync ; echo 0 > /proc/sys/vm/drop_caches I can add it in to cPanel like this. This doesnt work because I need root access. * */4 * * ...
0
votes
1answer
38 views

Cronjob time delay

On a VPS server, my cronjobs are running 3 hours late. The server current time is Tue Oct 11 23:56:09 EDT 2011 which is the time I want to (I checked this in WHM). However, the cronjobs still execute ...
1
vote
0answers
73 views

Dealing with cron jobs and MySQL/CPU contention on a single dedicated server architecture

We have a single small EC2 instance where we run a front-end server (php5-fpm/nginx) but also a lot of fetching cron php scripts inserting a lot of data (2k+rows every ~15min) which seems to ...
0
votes
2answers
56 views

Uninstalled asterisk, still gets email about error logs

/etc/cron.daily/logrotate: error: error accessing /var/log/asterisk: No such file or directory error: asterisk:1 glob failed for /var/log/asterisk/*_log error: found error in /var/log/asterisk/debug ...
0
votes
3answers
60 views

apply unix permission scheme on directory structure

I like to fix permissions on our fileserver via cron. In general I like to set everything to umask 027 ignoring any changes a user did. For certain subfolders I like to apply umask 077. The question ...
0
votes
1answer
45 views

Simple cronjob issue (I think!)

I am a Unix/Linux n00b. I have a VPS running CentOS with WHM/cPanel. I comissioned the installation of ASSP Deluxe, which is a third-party anti-spam solution. Everything works great. One of the ...
0
votes
1answer
135 views

Problems with cron script and TERM definition using top command

I have a problem executing a cron process to check current CPU use in my server. My script start with: top -c -n 1 -u www-data > /tmp/kill-cpu I can execute without problem in console, but in ...
0
votes
1answer
158 views

No log handling enabled - turning on stderr logging Cannot find

I'm trying to setup a Cron Job that runs a .php file that will automate client email correspondance. I've created the .php file and the Cron Job through cPanel. Everything works fine in that I'm ...
1
vote
2answers
308 views

How do I use curl in a cron job?

I need to set up a cron job in cpanel that calls a URL (on the same server) once a week. I was going to use wget but it turns out this is disabled on the shared server being used. Is there an ...
-1
votes
2answers
68 views

Passing date/time to cron job command

Is there any possibility to pass current date/time to command in my cron job? E.g. I want to make sql dump every night and name the dump file like 'dump-yyyy-mm-dd.sql'.
2
votes
1answer
71 views

Ubuntu server cron.d file not working - newbie question

I have created the below file in /etc/cron.d/ -rw-r--r-- 1 root root 81 2011-07-10 14:56 foswiki ...and copied the below into the file: * * * * * cd /var/lib/foswiki && perl -I bin ...
4
votes
1answer
55 views

Stop cronjob for two hours in a week

I have a cronjob which runs every 5 minutes all the day in a week. I want to stop this cronjob for 2 hrs only on Sunday. Could you pls help me to set this.
0
votes
1answer
656 views

ubuntu - cronjob failing with exit code 2

I have setup the following crontab - sudo crontab -e 01 21 * * * /usr/local/bin/sqlbackup.sh -e This should run sqlbackup.sh at 21.01 every night but it never runs. here is the error log ...
0
votes
2answers
63 views

linux apache cron-job - check file first

I'm retrieving an xml file from an offsite third-party server and copying it to my local server. Problem is, once in a while the offsite server is down for maintance and during this time I don't want ...
2
votes
1answer
65 views

long-running cron job not mailing it's output

I have a cron job running a script which takes about 6 hours to finish. The problem is that cron is not mailing me the output of that job, and I would like it to. I have it in /etc/crontab and it's ...
0
votes
1answer
164 views

Run a cron job as the tomcat user

I want to be able to run a cron job as the tomcat6 user. I tried to su tomcat6 but I don't know the default password for that user. Should I run them as tomcat6 (if I can find out the password - ...
0
votes
4answers
127 views

cron job to remove files with specific name

I have this in my crontab 0 3 * * * mysqldump --host=10.100.100.3 --user=username --password=mypass --routines DBName | gzip > /tmp/mysqldumps/mydb.`date +"\%Y-\%m-\%d"`.gz now I need to create ...
2
votes
2answers
119 views

cron job that runs on the last monday of the month

I need launch a few cron scripts on the last monday of every month. I was wondering if combining ranges will do the job, e.g.: 8 04 19-26 * 2 $HOME/bin/mailstub I hope I got it right and ...
0
votes
2answers
276 views

Running a JAR from a bash script in a cronjob

For some reason my cronjob is not working: 4 20 * * * /home/ubuntu/db_backup/myScript.sh 1 > /home/ubuntu/db_backup/cron_log.txt And my bash script looks like this: #! /bin/bash mysqldump -h ...
0
votes
2answers
232 views

Cron Job to copy file from one location to another for new files (daily)

How do I create a cron job to copy all files that are new within the 1 day span (each day at midnight)? So essentially all files created from the day of to the new folder with all permissions, date ...
0
votes
1answer
135 views

How many cron jobs can Ubuntu server handle?

I will setup a server which have 14400 website in it. I will use Ubuntu server 10.10 32-bit. (this is for my learning purposes) Every website needs cron. So I need 14400 lines of cron. Can the ...
-1
votes
3answers
226 views

Cron Job to delete file every 30 days [closed]

I am using Ubuntu 10.04 lts I am looking for the correct command line to delete all files from folder /var/www/myfolder/pictures/ every 30 days. What is the command I should apply to crontab -e? I ...
0
votes
1answer
130 views

Run crontab to click a website link every hour

I would like to click on a test like this (the "start testing" button) every hour so I can get a hourly result (results are saved on the server side). Basically what happens is that I connect with a ...
3
votes
1answer
127 views

Stop cron from sending mail to root for a specific process

I have a little problem with the cron daemon. I want to stop it from sending mail for a specific command. For example if I have: 10 * * * * someScript1.sh 15 * * * * someScript2.sh I want to get ...
1
vote
2answers
39 views

My server goes offline for some minutes after the backup cron job

Every day I m running my daily cron backup, I noticed that at the end of the backup procedure my server goes offline for about 2 minutes. This happens every day. Server details: Intel® Core™ i7-920 ...
1
vote
1answer
155 views

cron job that fired 8 times rather than once. Daylight saving issue?

We're running a Redhat server (2.6.33.3-85.fc13.x86_64) and experienced some odd behaviour with our cron setup. We're running an out-of-the-box installation of cron. We have a task that runs daily ...
1
vote
2answers
64 views

Does ColdFusion Still run scheduled tasks when apache isn't running?

Does ColdFusion 8 application server still run the CF scheduled tasks when apache is stopped?
0
votes
2answers
158 views

Cronjob running at wrong interval

I have the following cron in my crontab: 0 5 * * * wget -q -O /dev/null http://www.mysite.com/crontask.php From what I understand, this is to run at 5am every day and only once. However, I have ...
0
votes
2answers
280 views

sudo with -u via ssh -t in a crontab

I'm trying to create a cron job that uses ssh to login to a remote server and run a script as a different user. I try: * * * * * source $HOME/.keychain/$HOST-sh && sudo -u $USER ...
0
votes
2answers
324 views

CentOS Cron running at wrong time, 5hrs late (Logwatch)

Server: CentOS 5.2 with Logwatch 7.3-8.el5 I have a cronjob setup to run logwatch at 10:45pm daily. The cron runs and I get the logwatch email, but it's running at 4:30am. My server's time is behind ...
0
votes
1answer
34 views

cronjob php file duplicated continously

I have setup a few cronjobs in cPanel and it seems that everytime it runs the scripts, it writes a file to the root folder of that cPanel account. The problem is that the cronjobs run often and ...
0
votes
1answer
147 views

cpanel cron job not working

I have created a cron job in cpanel. The result is this: * * * * * /usr/local/bin/wget http://example.com/facturi-restante/cron The problem is that is not working. Can anyone give me a ...
1
vote
2answers
134 views

Run three different cron jobs twice in hour

I want to run three cron jobs commands twice per hour (once every half hour) and the interval between these command should be 1-2 minutes. How should I configure cron jobs from cpanel?
3
votes
2answers
201 views

Crontab: Not executing properly

(OS is FreeBSD 8.1) Yesterday I added 2 lines to crontab as root: 0 7 * * * curl --silent http://username:pass@dev.mydomain.tld/cron/execute/process/verbose/true ...
2
votes
1answer
214 views

Why are cronjobs running at the wrong time?

I have cronjobs setup to be run daily on my Ubuntu server. eg. 0 4 * * * command They are running except they are running 8 hours early. When setting up the server, it was originally set to UTC ...
1
vote
1answer
375 views

centos cron job running php file

I have a php file under php called test.php set to run every 5th minute of the hour. When ever I run the file manually (by going to the web browser and runnint the path) it works fine. But when the ...
1
vote
2answers
162 views

Cron job with ssh not working after boot

I have the following script collecting data about current logged users. #!/bin/bash # Collecting users login statistics CURRENT_ALL_USERS="path_to_log_file" ADMIN="path_to_admin_dir" ...

1 2 3