Date: Wed, 5 Dec 2007 15:35:15 +0700 From: Supote Leelasuppakorn <pjn0211@hotmail.com> To: <freebsd-questions@freebsd.org> Subject: Shell script in crontab cannot write files into FreeBSD's filesystem. Message-ID: <BAY102-W3337CB4EF28B22D42A9745B96E0@phx.gbl>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY102-W3337CB4EF28B22D42A9745B96E0>