The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Loop problem with one more problem aliahsan81 Shell Programming and Scripting 3 01-07-2009 02:02 AM
problem in finding a hardware problem girish.batra SUN Solaris 8 09-09-2008 10:10 AM
ssh script problem problem pcjandyala Shell Programming and Scripting 2 07-31-2008 03:27 PM
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 10:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 10:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-17-2008
Arunprasad Arunprasad is offline
Registered User
  
 

Join Date: Aug 2008
Location: syn chen
Posts: 70
Post 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.
  #2 (permalink)  
Old 11-17-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Question

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.
  #3 (permalink)  
Old 11-17-2008
Arunprasad Arunprasad is offline
Registered User
  
 

Join Date: Aug 2008
Location: syn chen
Posts: 70
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0