6
votes
1answer
60 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
1answer
215 views

How to stop long-running cron process from being killed

I have a long-running cron process, running a Python script, that seems to get randomly killed. In dmesg I see: [230568.077358] init: cron main process (890) killed by TERM signal [237517.974422] ...
0
votes
1answer
48 views

Strange crontab behaviour [duplicate]

This evening I have been playing with cron for the first time, and have started experiencing strange results. The script that I am trying to run is a watchdog that allows me to manage a couple other ...
0
votes
1answer
39 views

Options for Executing Scheduled Scripts on a PHP Server

I have a server that I've setup running PHP. This serves JSON files and is running fine. I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and ...
1
vote
1answer
723 views

How do I rotate old log files to long-term backup?

I have logrotate set up to archive logs for 30 days; how do I set up my cron job to rotate them automatically from /var/log/net to the long-term storage I have mounted on /mnt/backup? I do not need ...
2
votes
4answers
553 views

About using cron in Linux to schedule my python program

I want to use cron to hourly run a python program in Linux(ubuntu). I wrote a script called script.sh cd Dropbox/NetworkProject/AMT_Crawler/ scrapy crawl AmtCrawler --set FEED_URI=data.json --set ...
1
vote
2answers
653 views

Capture errors in python cronjobs

I have a python script as a cron job that is called like this /path/to/python /path/to/myscript myparam When an error occurs in the script, the cronjob silently fails. When I run the same command ...
1
vote
6answers
357 views

cron job on web server

How would I go about telling my web server (Webfaction) to just run a python file and let it keep running forever? Someone told me I should use cron but I haven't found any good material on how to run ...
0
votes
2answers
278 views

Crontab not running

I am using putty to login in webfaction server. I used crontab -e command and wrote this line over there and restarted apache. According to this line it would run every minute but even after ...
1
vote
2answers
351 views

Need with crontab and gui python popup

I have following python script, and want to run it with cron so that every minute cron will popup a message. #!/usr/bin/python # -*- coding: utf-8 -*- import gtk.gdk import pynotify import random ...
3
votes
1answer
245 views

How precise is cron?

Hey everyone. I am trying to set up a python script to query a DB for all updates over the past 5 minutes. Given the number of updates, it must be as precise as possible (our records are timestamped ...
0
votes
2answers
515 views

ssh - execute script in background if not already running?

How do I execute a python script in the background if it is not already running? An example use for this is on the cron.
0
votes
2answers
480 views

Cron job: [Errno 2] No such file or directory

On a Mediatemple gridserver, I'm trying to run this by a cron set in the control panel: usr/bin/python /home/xxxxx/html/sitemap_gen.py --config=/home/xxxxx/html/config.xml But I get the error ...
2
votes
4answers
567 views

Cron not running my Python statement

I have the following entry in crontab: * * * * * python -c "import datetime; datetime.datetime.now()" >> /home/myname/pythoncron1.log The pythoncron1.log file is being created but has nothing ...
0
votes
3answers
475 views

Cronjob executing multiple times at once

I have a cronjob similar to this: */1 * * * * /usr/bin/python /home/root/test.py >> /home/root/spring.1 In test.py, I am just printing the current time. After few mins of observation, I see this in ...
1
vote
3answers
2k views

Best PGP/GPG Encrypt/Decrypt Script

Is there are good default python or simple shell script that I can use to encrypt and decrypt files via PGP/GPG? I would be running this script every 5 minutes.
1
vote
2answers
202 views

Best FTP Transfer Script

I am looking for a robust FTP transfer script that I can use with cron, any recommendations? I would love a script in Python that could run in the background.
4
votes
3answers
2k views

Scheduling tasks with Django

I have a Django website, and I want to have a certain piece of Python code run at regular intervals. What would be a good way to do that? I know I can cron, but I would prefer the solution to be ...
3
votes
11answers
3k views

Cron job fails silently

I've got a python script that I want to run via crontab. My crontab looks like this: 5,20,35,50 * * * * /var/www/django-apps/callreport/util.py That script is set up to parse a bunch of flat files ...