I created a script at sun env. to back up development files. following is part of the code
cp -p $file_record $file_record.$TIME
chmod 666 $file_record
mv $file_record.$TIME.gz $file_record.gz
tar rvf $WORKFILE $file_record.gz
TIME is system time (to make sure a uniqure file name).
This script is working fine when typing the command at the prompt. After I set a cron job to run it,"gzip $file_record.$TIME" is failed. Does anyone can explain it?