Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2008 01:14:36 -0500
From:      CyberLeo Kitsana <cyberleo@cyberleo.net>
To:        Darrell Betts <betts@norden1.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: setup cronjob
Message-ID:  <48CA08CC.7070407@cyberleo.net>
In-Reply-To: <BD710096-2A12-4972-AA49-F70EE6D407A0@norden1.com>
References:  <BD710096-2A12-4972-AA49-F70EE6D407A0@norden1.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/test.sh: 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 "test.sh: '' not found."

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<CyberLeo@CyberLeo.Net>

Furry Peace! - http://wwww.fur.com/peace/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48CA08CC.7070407>