Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2007 08:15:47 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Supote Leelasuppakorn <pjn0211@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Shell script in crontab cannot write files into FreeBSD's filesystem. (2nd evised version)
Message-ID:  <20071205191547.GA69589@osiris.chen.org.nz>
In-Reply-To: <BAY102-W11B5E42ACC7E6D82E3D6C0B96E0@phx.gbl>
References:  <BAY102-W11B5E42ACC7E6D82E3D6C0B96E0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 05, 2007 at 04:02:29PM +0700, Supote Leelasuppakorn wrote:
> 
> 
> 
> Hi all,
> 
>    Please anybody help me, I faced the problem with my "crontab".
> I tried to run a shell script which will fetch webpage and save it to
> a directory by using wget but after few minute I cannot see any file
> in such directory
> 
>    Below are content of shell script, my crontab and also
> file's permission listing.
> 
> ##########################
> # Output of `crontab -l`
> ##########################
> SHELL=/bin/sh
> MAILTO=pjn
> * * * * * . /home/pjn/parseGP/fetchPage.sh
            ^
You've got a "." as your command. Attempting to execute a directory
is Not Good.
-- 
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
      "The things we know best are the things we haven't been taught."
                                             - Marquis de Vauvenargues



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