0
votes
1answer
29 views

Can't run AWS CLI from CRON (credentials)

Trying to run a simple AWS CLI backup script. It loops through lines in an include file, backs those paths up to S3, and dumps output to a log file. When I run this command directly, it runs without ...
0
votes
1answer
37 views

How can I know which user has cron jobs configured on a machine with 200+ users?

I need to build a new machine and copy properties and some cron jobs from another machine which has about 200+ users and I don't know which users have cron jobs configured. Is there a way to extract ...
0
votes
0answers
26 views

How can I queue a script to run the next time a system is up and connected to the internet? [migrated]

I'm using mailsend (on a Mac) to send mail from the command line. I'd like to set this up such that I can execute a send command, but if my system is disconnected from the internet, that command is ...
1
vote
1answer
43 views

Perl FTP script fails from crontab, works from cmd

We have a Perl script we've been using (launched from crontab) for several years to upload images using Net::FTP. Recently we began to notice problems where the images were not uploading and errors ...
1
vote
0answers
42 views

cron.weekly runs on wrong day of week on Ubuntu

I have this line in my /etc/crontab: 47 6 * * Sat root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) So the cron.weekly should be started every Saturday ...
0
votes
1answer
32 views

Binding timestamp value to a variable in crontab

I'm basically trying to declare a variable with a date() value in crontab as I will constantly be using the same date structure over and over, here is what my crontab looks like so far. php = ...
-1
votes
1answer
44 views

sending email from cron in html format not text

i am trying to send email every 1 hour from cron job which is executing a php script that fetches data from database and shows in a table format. i have CentOs 6.1 where i created my cron job.firstly ...
6
votes
1answer
70 views

Processes hanging indefinitely when calling read(2)

I have several Debian (Wheezy, x86_64) servers all exhibiting the following behavior: All of the servers have a set of cron jobs that, among other things, pull data from S3. These usually run fine, ...
0
votes
0answers
23 views

Is it better to use the systemd service unit's Restart & RestartSec, or use a systemd timer unit?

I have a couple of in-house automated scripts running at periodic intervals. One is every five minutes, the other is every minute. They don't really need to be ran on-the-dot; e.g. I don't care if ...
1
vote
1answer
43 views

When cron is completed How to get email notification and log in a file (both)

I am a Newbie to linux. I'm trying to figure out things. Can someone kindly help me how to combine these two commands? (1) Normally cron can results can be directed to a log file by editing crontab ...
0
votes
2answers
59 views

Backup Ubuntu server with cron/rsync: Problems with resuming large files

I currently have a dedicated Ubuntu backup server which wakes itself up from suspend (using rtcwake) daily. 5 minutes later a cron BASH job kicks in, using rsync to pull files from various network ...
0
votes
1answer
34 views

Periodically run an MS SQL query on multiple sites

I have been tasked with pushing Google Analytics data periodically to SQL Server 2005 running on a different server from various websites (about 450 of them) grouped on various servers. I understand I ...
1
vote
4answers
94 views

rsync changing already existing files

I have a simple line of rsync in my crontab that gets backup files from the prod server to another. It looks like it is touching the already existing files in the destination folder. This way, the ...
1
vote
1answer
80 views

Weird syslog order

Have you ever seen wrong order in /var/log/syslog ? I think that it causes only crontab. Jun 28 22:20:01 alex CRON[2327]: (root) CMD (something > /dev/null) Jun 28 22:21:01 alex CRON[2700]: (root) ...
0
votes
1answer
50 views

Server incremental backup to AWS Glacier

I'm looking to backup various directories and files from a Linux server to AWS Glacier. I'm trying to work out the details on how to do manage this. Incremental Backups I want to upload files ...
0
votes
2answers
35 views

rsync last 3 days plus weekly backups

I have a shell script that i'll be running with a crontab. Basically I want to modify this so I can do daily backups for the last 3 days. I've seen examples where the last 7 days are backup. I just ...
1
vote
1answer
21 views

Cron: possibility to specify a hours to start/stop on a specific day

What is the crontab syntax for specifying running hours/minutes based on the day of the week in a single entry? There's a task which needs to be executed every /1 minute from Monday,01:00 to ...
0
votes
1answer
25 views

Ubuntu 10.04 cronjob with curl dosen't work

I would like to execute some php script via cron job i have curl, crontab installed, but the cron job dosen't run/create any log file. crontab -l * * * * * curl ...
0
votes
2answers
66 views

munin-cron Unable to Copy Contents

I recently installed munin on my (Fedora12 based) server. Now, I wanted to get all the graphs in a static directory (The application runs on Django). So, I edited the file /etc/munin/munin.conf by ...
0
votes
1answer
43 views

can I use @reboot in cron.d files? [closed]

I want to run a job with cron on reboot as a particular user. I have been able to do this successfully using crontab to write to /var/spool/cron/crontabs/username with something like: @reboot ...
0
votes
1answer
85 views

ways to automatically fix line endings in shell scripts or files who break with ^M

Problem We regularly break our files lines endings and things stop working without us noticing. Bash complains about "invalid option" or ": command not found" as described here: ...
0
votes
1answer
74 views

Why does my cron job sometimes fail on wget: unable to resolve host address [closed]

My cron job runinng properly .But sometimes it get fail with following error message" failed: No address associated with hostname. wget: unable to resolve host address "
0
votes
0answers
9 views

Setup cronjob with SSH crontab [duplicate]

Someone can help me to setup cronjob with crontab. I have run command crontab -e -u root 01 0 * * * /usr/bin/php /var/www/web/daily/testssh.php But it always get error: crontab: usage error: no ...
0
votes
1answer
37 views

How to get atop to create daily logfile

I'm running a website on a VPS running Centos 6.5 and am having some issues. I'm new to serveradmin so just learning. atop was already installed on our machine and it's working. I wanted to go in and ...
0
votes
0answers
13 views

Cronjob doesn't run [duplicate]

I'm running a FC14 server (2.6.35.13-92.fc14.i686) and I'm trying to add a simple cronjob. I've edited the /etc/crontab file and now it looks like this: SHELL=/bin/bash ...
-1
votes
1answer
56 views

Allow nginx www to run Centos at command

I have a job which created by PHP script running as www (nginx) 31 2014-06-09 19:08 a www After the time passed, the job is executed but nothing happens. But if i run it as a root, 32 ...
-3
votes
2answers
48 views

Remove all files in directory except last 20

I have question why is my cmd for "removing all files in directory except last 20" not working within cron but in command prompt yes. * * * * * ls -1tr /home/testusr/test | head -n -20 | xargs -d ...
0
votes
1answer
27 views

how to increase the size of /var/log/cron on cent os 6.4

how to increase the size of /var/log/cron on cent os 6.4. I wanted to keep the logging history longer. Thanks!
0
votes
0answers
28 views

Bash Script issue : Discrepancy in output when executed via cron [duplicate]

I have written a bash script that writes date and database size of a DB to a text file. The script is executed via cron every week. There is some discrepancy in the output that is being generated . I ...
0
votes
1answer
71 views

Shell script only executes partially when run with CRON [duplicate]

I've written a shell script that does the following: Retrieve mail from a POP3 account (using GetMail) Save a copy of that email to S3 (using AWS CLI) Email me the filesize of the email The ...
-1
votes
1answer
22 views

run ubuntu crontab every 19th of the month in 2am [duplicate]

i'm not sure about something and that's why asking i want a process to run every 19th of the month in 2am i don't want the cron to run after that time or before and only when the date is 19th - in ...
1
vote
1answer
122 views

Capturing output from a remotely executed command via SSH fails in CRON

This question is in a direct relation to this one: ssh fails to execute remote command when run from cron bash script - works from CLI I'm not able to comment on the accepted answer as I don't have ...
1
vote
1answer
46 views

Difference between “crontab -e” & editing crontab file manually? [duplicate]

I noticed some people use "crontab -l" to view cronjobs and "crontab -e" to edit them. However there are also times where people manually modify "/etc/crontab" to view/add/remove cronjobs. Both ...
1
vote
0answers
48 views

Publicly available black list for web servers [closed]

I'm a bit surprised to find that there really aren't any publicly available RBLs for web servers. Yes, there's project honeypot but you have to hit their API in realtime in order to check a given IP ...
0
votes
0answers
43 views

Strange behaviour with cron script not running [duplicate]

I recently stumbled upon a strange issue with cron on Ubuntu 13.10. I have a Ruby On Rails rake task (background task) that needs to be run on Cron every 3 minutes. So the script itself works and ...
3
votes
1answer
49 views

Crontab - Unusual config - Skip a small weekly time window

I have a business requirement to run an unorthodox crontab schedule as follows: Everyday run a script from 1-21 Everyday but saturday, run from 21-0 So I was thinking this would work: 5 1-20 ...
0
votes
1answer
55 views

logwatch on Centos 6.4

My logwatch is configured correctly and is working correctly when I issue manually /usr/sbin/logwatch I added it to root's crontab and it is listed correctly when I make crontab -l which gives: 0 ...
1
vote
1answer
61 views

Programmatically adding two lines to crontab

I'm trying to add two lines to the root crontab when building an AWS instance. I have a set of commands that are part of the "user data". These commands are run as root when creating the instance. I ...
3
votes
2answers
60 views

hg pull from Bitbucket fails when run from cron

I have a local copy of a Bitbucket repo on one of my servers (under the user rob), and I created a script that runs every hour in cron and attempts to pull & update the local copy. The issue I'm ...
-6
votes
1answer
63 views

execute script at particular time in amazon ec2 linux [closed]

I am newbi in amazon ec2 as well as linux, I am working on pentaho kettle, for starting my job process i m using following command in amazon ec2 instance, cd /dev/pdi/data-integration (reaching to ...
1
vote
0answers
42 views

Incrontab does not execute command

I have copied this question over here from unix.StackOverflow When I use incrontab out of the box, I mean no changes, I get no result, as if the cmd was not executed. my incron line is : /crrae ...
6
votes
3answers
315 views

Crontab job dependency to prevent race [closed]

I want to run a cron every 5 minutes, but I don't want the next cron to run if the previous did not finish yet. What can be done about this? Are there any tools to support this? Thanks
-1
votes
2answers
105 views

Why cron job is not able to open X display connection [closed]

I have a java app rendering some sprites using LWJGL and OpenGL. It works fine until I move it to remote virtual machine with no phisical graphic card, Mesa 3d with related stuff is used to emulate it ...
-3
votes
1answer
43 views

Replace of cron job/cron tabs— Windows Scheduler [closed]

I want to know that there is any way to create an script on windows machine in PHP that should run after an interval, let's say every after 15 minutes. Currently I'm doing it using javaScript, but ...
-1
votes
1answer
341 views

Scheduled Task issue - /usr/bin/php/: No such file or directory

Can't get it working, I want to set up a cron job for a domain user in plesk 11.5, but seems that there's a problem to find the php executable. The command is: /usr/bin/php/ -f ...
-2
votes
1answer
68 views

Bash and cron error [duplicate]

The following cron job fails to execute. What's wrong with it? It works fine when I run it directly from the shell prompt. www-data@etl:~$ crontab -l SHELL=/bin/bash MAITO="" 0 5 * * * export ...
0
votes
2answers
97 views

Cron getting timeout when attempting to access url (wget).

I'm sure this is simple and I've been digging but no answer is quite as specific as I need it to be. The goal is easy, have Cron hit a url on my server every 5 minutes. All of that is set up and ...
0
votes
0answers
142 views

How to restart PHP-FPM from cron?

I'm trying to restart PHP5-FPM periodically using Cron, but am having no luck. I can restart manually with no problems, using service php5-fpm restart or /usr/sbin/service php5-fpm restart However, ...
1
vote
1answer
291 views

how to stop a php-fpm process that started with a cron job but won't die

and thank you beforehand for reading this. I'm pretty new to linux and have just migrated from a shared hosting to a vps for my shop. I set up nginx with fpm and varnish, and some cron jobs to import ...
0
votes
4answers
187 views

cron job executing script [duplicate]

I have created a script that works as expected in shell but cron job does not seem to run it. when I check my cron mail, I see that it prints "hltv is not running" but does not create a screen ...