On Wed, 16 Dec 2009, Kevin wrote:
[...]
The only other symptoms I can identify right now are related to the
following entries in my crontab:
0 2 * * 6 /usr/local/sbin/portsclean -DD
0 2 * * 5 /usr/local/sbin/portsclean -C
The e-mailed results simply say "env: ruby: No such file or
directory". However, these commands seem to run fine from an
interactive shell (while logged in).
Paths. When there's a problem with cron it's (almost) always paths.
portsclean is a ruby script that starts with this line:
#!/usr/bin/env ruby
That should find and run ruby. Your /etc/crontab should have these
lines:
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
I also receive the same message at the end of the output for
"/usr/sbin/portsnap cron update && /usr/local/sbin/portsdb -u >
/dev/null" run from cron:
portsdb is another ruby script. Same deal; cron running env can't find
ruby.
-Warren Block * Rapid City, South Dakota USA
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"