Shell script in crontab cannot write files into FreeBSD's filesystem. (2nd evised version)

Jonathan Chen jonc at chen.org.nz
Wed Dec 5 11:15:49 PST 2007


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 at chen.org.nz>
----------------------------------------------------------------------
      "The things we know best are the things we haven't been taught."
                                             - Marquis de Vauvenargues


More information about the freebsd-questions mailing list