From owner-freebsd-questions@FreeBSD.ORG Wed Dec 5 19:15:49 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 269B216A417 for ; Wed, 5 Dec 2007 19:15:49 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (chen.org.nz [202.89.146.5]) by mx1.freebsd.org (Postfix) with ESMTP id BA2C913C508 for ; Wed, 5 Dec 2007 19:15:48 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 6D5D77E846; Thu, 6 Dec 2007 08:15:47 +1300 (NZDT) Date: Thu, 6 Dec 2007 08:15:47 +1300 From: Jonathan Chen To: Supote Leelasuppakorn Message-ID: <20071205191547.GA69589@osiris.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: Shell script in crontab cannot write files into FreeBSD's filesystem. (2nd evised version) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 19:15:49 -0000 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 ---------------------------------------------------------------------- "The things we know best are the things we haven't been taught." - Marquis de Vauvenargues