Error while zipping files | Unix Linux Forums | Solaris

  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 Thread    
Thread Tools Search this Thread Display Modes
Old 01-22-2009
Ariean Ariean is offline
Registered User
Join Date: Apr 2008
Last Activity: 22 October 2014, 11:48 AM EDT
Posts: 227
Thanks: 77
Thanked 2 Times in 2 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! (
Error In Adding /u02/app/upload/process/2008_04_AM_AP_FI.csv To The
for all files same error message
Sponsored Links
Old 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 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 ...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 UNIX for Dummies Questions & Answers 2 01-06-2009 03:51 PM
zipping files shary Shell Programming and Scripting 3 07-21-2008 06:58 AM
Zipping files older than one month ramky79 Shell Programming and Scripting 2 04-07-2008 05:39 PM
Zipping the dir dreams5617 Shell Programming and Scripting 1 07-26-2006 01:20 AM
tar'ing and zipping files FredSmith UNIX for Dummies Questions & Answers 4 05-02-2006 04:09 PM

All times are GMT -4. The time now is 10:59 AM.