I have a script that zips files. When i run it from the command line it works fine. When I put it in the cron it dosen't work. This is the error from cron that is sent to the root mailbox.
Your "cron" job on detroit
/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.
#!/bin/ksh
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
Does anyone have any clues.
Thanks
Jesse
Your "cron" job on detroit
/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.
#!/bin/ksh
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
Does anyone have any clues.
Thanks
Jesse