Error while zipping files

I was trying to remove & archive all the files in the current directory and embed them into the zip file, i mean i don't want to list the files any more after zipping those files. For this i wrote the following code though operation was succeeded zipping all the files and creating a zip file i am seeing an error message, could you please correct me where i am doing wrong.

Code:
[
while read line
do
zip -mqj $zipfilename $line
if [ $? -eq 0 ];then
echo "$line File Has Been Added To The Zip File $zipfilename"
else
echo "Error In Adding $line To The $zipfilename"
fi
done < $archivedir/archivefiles.list
]

Error Message:
[
zip error: Nothing to do! (GPM_090121.zip)
Error In Adding /u02/app/upload/process/2008_04_AM_AP_FI.csv To The GPM_090121.zip
...
...
...
]
for all files same error message

Are you sure that file wasn't already put into the zip file? That is the error you get if the source file no longer exists.

your file should have been zipped I guess ... :slight_smile: