setup cronjob
  Home FAQ Contact Sign in
lucky.freebsd.questions only
 
Advanced search
POPULAR GROUPS

more...

lucky.freebsd.questions Profile…
 Up
setup cronjob         


Author: Darrell Betts
Date: Sep 12, 2008 04:12

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?

Cron job example

0 /6 * * * test /usr/home/test/cronjobs/test.sh

Thanks in advanced

Darrell Betts
betts@norden1.com
-----------------------------------------------------------
Looks like I Picked the Wrong Week to Stop Sniffing Glue.
-- Steve McCroskey --

Live ATC Feed from Toledo Express Airport http://audio.liveatc.net:8012/ktol.m3u
3 Comments
Re: setup cronjob         


Author: RW
Date: Sep 12, 2008 04:49

On Thu, 11 Sep 2008 22:12:35 -0400
Darrell Betts norden1.com> 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?
>
> Cron job example
>
> 0 /6 * * *
> test /usr/home/test/cronjobs/test.sh
>
Does user test have access to /usr/home/test/cronjobs/?
no comments
Re: setup cronjob         


Author: Sahil Tandon
Date: Sep 12, 2008 05:45

Darrell Betts norden1.com> 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?

Show the output of:

%% ls -l /usr/home/test/cronjobs
%% crontab -l
%% less /etc/crontab

--
Sahil Tandon tandon.net>
no comments
Re: setup cronjob         


Author: CyberLeo Kitsana
Date: Sep 12, 2008 08:14

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.Net>

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