ZIP Problem

Hi Folks,

i have a script to zip certain files. redirecting the successfully zipped files and unsuccessful files to seperate files.

i found unzipped file name in zipped file list.
i dont know why it happened.
and, some of the files are not zipped.

i checked the previllege also, even without execution permission it is possible to zip, but some files are missing to process. i need your suggestions here. and need some more clarifications...

here are my concerns?
1> if the file was created by some other user, i am trying to zip that when the user is currently working(opened) in that file. will zip work in this case?
2> is there any difference in gzip and compress command?
3> is possible to protect the file from any other operations by any other users. if this possible what is the way to zip that file.

its very severe issue could you please guide me in a way to catch the exact point.

Thanks.

Can you show us a listing of the files you are trying to work with; do an ls -l command so the file priviliges are visble.
Then, let's see the command you are using.
Finally, show us the archive/listing of what is in the zip folder.

Any number of things could be wrong from you not having access to some of the files you are trying to zip to you not having access to create the zip file.

yeah i agree.

here is the sample previlege list
-rw-r--r-- sometimes
-rw-r----- sometimes

zip worked for the files which have the above privilege sometimes it fails to zip.
the zipped files are stored in a file as a list with directory (complete path).
i dont know the command we are using to zip but looking into the file extension after zip in the particular folder i am seeing .gz, so i think we are using gzip command.

actually i just want to help some other team. so i cannot able to give you all info.
the info what i provided above is what i got from my friend.

could you please guide me to help in solving the issue.

thanks for your response Joeyg.