I have a script that works fine when it is run from the command line but when I put it in cron this is what I get.
/export/home/siswjh/korn/zipthis
produced the following output:
zip warning: name not matched: dskusage
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: freespace
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: ftpD
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: ftpacbs
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: logins_nopass
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: message
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: moveas400
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: performance
zip error: Nothing to do! (korn.zip)
This is the script.
HOME="/export/home/siswjh/korn"
AHOME="/export/home/siswjh/ftp"
filesndir=$(ls -l $HOME|nawk '{print $9}'|grep -v "ftppmag"|grep -v "zipthis"
for lines in $filesndir
do
zip korn $lines
done
When I run it command line this what I get.
root@detroit # zipthis
adding: dskusage (deflated 79%)
adding: freespace (deflated 54%)
adding: ftpD (deflated 68%)
adding: ftpacbs (deflated 69%)
adding: logins_nopass (deflated 51%)
adding: message (deflated 73%)
adding: moveas400 (deflated 35%)
adding: performance (deflated 67%)
It works fine. Does anybody have any clues?
Thanks
Jesse
/export/home/siswjh/korn/zipthis
produced the following output:
zip warning: name not matched: dskusage
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: freespace
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: ftpD
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: ftpacbs
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: logins_nopass
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: message
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: moveas400
zip error: Nothing to do! (korn.zip)
zip warning: name not matched: performance
zip error: Nothing to do! (korn.zip)
This is the script.
HOME="/export/home/siswjh/korn"
AHOME="/export/home/siswjh/ftp"
filesndir=$(ls -l $HOME|nawk '{print $9}'|grep -v "ftppmag"|grep -v "zipthis"
for lines in $filesndir
do
zip korn $lines
done
When I run it command line this what I get.
root@detroit # zipthis
adding: dskusage (deflated 79%)
adding: freespace (deflated 54%)
adding: ftpD (deflated 68%)
adding: ftpacbs (deflated 69%)
adding: logins_nopass (deflated 51%)
adding: message (deflated 73%)
adding: moveas400 (deflated 35%)
adding: performance (deflated 67%)
It works fine. Does anybody have any clues?
Thanks
Jesse