6
votes
1answer
61 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, ...
1
vote
1answer
97 views

Script doesn't work as cron job [closed]

I have a script that I wrote to verify on an OS X machine (v 10.7.4) if a volume is up or down. If it goes down, it is supposed to send an email. When I run the script from the command line, it works ...
2
votes
5answers
1k views

SVN command works in shell but not in cron. Why not?

I use cron to run an 'svn up' nightly on a directory of files that I need to keep up to date locally while others are working on them. This used to work fine, with a simple: /usr/bin/svn up ...
1
vote
2answers
3k views

How to set up cron on Mac?

I'm trying to get a simple cron job to run on a Mac 10.5.8. I'm following these instructions. It says to edit the file /usr/crontab which doesn't exist for me, but I found /usr/bin/crontab. ...
4
votes
1answer
1k views

FreeBSD: periodic(8) is too noisy. How can I control the noise level?

FreeBSD & MacOSX ship with the the periodic(8) utility, which is a neatly organized set of utilities to periodically run system functions like ZFS filesystem checks, security checks, checking for ...
6
votes
2answers
2k views

Cron and rsync using file lock but is there a better way on Mac OS X Server?

I have this bash script and is run via cron on a regular interval: #!/bin/bash RSYNC=/usr/bin/rsync SSH=/usr/bin/ssh KEY=/Users/admin/Documents/Backup/rsync-key RUSER=philosophy RHOST=example.com ...
5
votes
3answers
239 views

What is preventing me from piping from a '600' file into mail within launchd?

In OSX 10.6 I'm running logcheck.sh via. launchd using this plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" ...
1
vote
1answer
186 views

mac cron can't use the shell correctly

I've set up cron to run a simple hello world shell script, but it's giving me an error that Google isn't helping me resolve. I've got to be missing something really simple! Here's my crontab: ...
2
votes
4answers
2k views

crontab - how to create in Terminal?

I'm trying to run a scheduled task on my shared Linux server using the crontab via Terminal on my Mac. I can login to my ssh OK, and can view directories etc with ease. I try and create/edit my ...
3
votes
2answers
534 views

how to change cron shell for OSX Leopard

I have a script that runs fine if I invoke it from the command line, using Bash. But when cron tries to run it, it fails with a "mysql: command not found" error. I think this is because cron is not ...
0
votes
2answers
138 views

How to autostart apps in OS X as a different user

I am playing with CouchDB and whenever I do, I first have to issue sudo couchdb -i -u couchdb couchdb -b This starts CouchDB as the user couchdb, group couchdb. I then also have to enter my ...
1
vote
3answers
941 views

OS X cron and environment variables

I'm currently setting a number of environment variables in OS X in /etc/profile using the export command. These are all listed correctly when I check in terminal, however when a script is executed ...