cron question

Chuck Swiger cswiger at mac.com
Tue Apr 4 23:31:58 UTC 2006


Marlon Martin wrote:
> i created a simple shell script:
> 
> filename: rn
> 
> #!/bin/sh
> rndc dumpdb
> 
> what it does, is just dump the hostname and IP addresses in /var/dump
> i set the time in 2 minutes but when i checked the logs, it doesnt work any
> idea what did i missed here?

You forgot to use the full path to rndc in your shell script.  You should not
assume that the $PATH cron passes you is going to have that command available.

-- 
-Chuck



More information about the freebsd-questions mailing list