Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to execute a swatch command via crontab in Ubuntu 10.4. The command works perfectly in the command line but not in cron.

Here is the command :

/usr/bin/swatch -c /home/administrator/swatch.conf -f /home/administrator/scripts/couchdbmonitor.log > /home/administrator/scripts/swatch.log 2>&1

I see the job triggering in /var/log/syslog but does not execute.

share|improve this question
    
and what is in your /home/administrator/scripts/swatch.log ?? – Cédric Julien Jul 23 '12 at 18:37
    
It's the output that would usually print to the command line. The output looks something like "*** swatch version 3.2.3 (pid:12684) started at Mon Jul 23 14:46:02 EDT 2012". – larrytek7 Jul 23 '12 at 18:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.