From owner-freebsd-questions@FreeBSD.ORG Wed Dec 5 08:47:15 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 C255D16A419 for ; Wed, 5 Dec 2007 08:47:15 +0000 (UTC) (envelope-from pjn0211@hotmail.com) Received: from bay0-omc1-s29.bay0.hotmail.com (bay0-omc1-s29.bay0.hotmail.com [65.54.246.101]) by mx1.freebsd.org (Postfix) with ESMTP id AA29D13C442 for ; Wed, 5 Dec 2007 08:47:15 +0000 (UTC) (envelope-from pjn0211@hotmail.com) Received: from BAY102-W33 ([64.4.61.133]) by bay0-omc1-s29.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 Dec 2007 00:35:14 -0800 Message-ID: X-Originating-IP: [124.121.98.46] From: Supote Leelasuppakorn To: Date: Wed, 5 Dec 2007 15:35:15 +0700 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 05 Dec 2007 08:35:14.0914 (UTC) FILETIME=[C2090420:01C83719] Content-Type: text/plain; charset="windows-874" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Shell script in crontab cannot write files into FreeBSD's filesystem. 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 08:47:15 -0000 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 toa directory by using wget but after few minute I cannot see any filein such directory Below are content of shell script, my crontab and also file's permission listing. ################### # The output of `crontab -l`################### SHELL=/bin/shMAILTO=pjn* * * * * . /home/pjn/parseGP/fetchPage.sh ################### # filename: fetchPage.sh################### #!/bin/sh TIMESTAMP=`date "+%Y%m%d-%H%M%S"`LOGPATH="/home/pjn/parseGP/logs" /usr/local/bin/wget --no-cache -a ${LOGPATH}/fetch.log -O ${LOGPATH}/${TIMESTAMP}.html http://www.blahblah.com ################### # Files' permission################### blahHost$blahHost$ls -ltrd parseGPdrwxr-xr-x 3 pjn pjn 512 Dec 5 14:27 parseGPblahHost$ls -ltr parseGP/total 4drwxr-xr-x 2 pjn pjn 512 Dec 5 15:11 logs-rwxr--r-- 1 pjn pjn 226 Dec 5 15:21 fetchPage.shblahHost$ls -ltr parseGP/logs/total 0-rw-r--r-- 1 pjn pjn 0 Dec 5 15:14 fetch.logblahHost$ Thanks in advance,Pote