Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Error while zipping files


Closed Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 01-21-2009
Ariean Ariean is offline
Registered User
Join Date: Apr 2008
Last Activity: 30 September 2015, 2:42 PM EDT
Posts: 235
Thanks: 78
Thanked 3 Times in 3 Posts
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.

while read line
zip -mqj $zipfilename $line
if [ $? -eq 0 ];then
echo "$line File Has Been Added To The Zip File $zipfilename"
echo "Error In Adding $line To The $zipfilename"
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
Sponsored Links
Old Unix and Linux 01-22-2009
Annihilannic Annihilannic is offline Forum Advisor  
Join Date: May 2008
Last Activity: 28 October 2009, 7:03 PM EDT
Location: Sydney, Australia
Posts: 1,009
Thanks: 0
Thanked 2 Times in 2 Posts
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.
Sponsored Links
Old Unix and Linux 01-25-2009
incredible incredible is offline Forum Advisor  
Registered User
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
your file should have been zipped I guess ... Linux
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
zipping all the tar files to singlr file in directory prakash.gr UNIX for Dummies Questions & Answers 2 01-06-2009 02:51 PM
zipping files shary Shell Programming and Scripting 3 07-21-2008 05:58 AM
Zipping files older than one month ramky79 Shell Programming and Scripting 2 04-07-2008 04:39 PM
Zipping the dir dreams5617 Shell Programming and Scripting 1 07-26-2006 12:20 AM
tar'ing and zipping files FredSmith UNIX for Dummies Questions & Answers 4 05-02-2006 03:09 PM

All times are GMT -4. The time now is 11:59 PM.