setup cronjob

CyberLeo Kitsana cyberleo at
Fri Sep 12 06:14:45 UTC 2008

Darrell Betts wrote:
> I have wrote a small script put it in my home directory. I am trying to
> setup a cronjob to run it every six hours. When it runs the job I
> receive the error message " /usr/home/test/cronjobs/ not found"
> I have tripe checked the file permissions and they appear correct so I
> am stumped as to why this won't run? Any ideas?

Make sure that the shebang at the top of the script (#!/bin/sh or
similar) points to a valid shell, and that it uses unix-style end of
lines. If a control character or linefeed gets in there somewhere, the
kernel won't be able to find the proper interpreter to run the script,
hence the " '' not found."

Fuzzy love,
Technical Administrator
CyberLeo.Net Webhosting
<CyberLeo at CyberLeo.Net>

Furry Peace! -

More information about the freebsd-questions mailing list