LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2009, 06:01 AM   #1
guru_ks2004
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Linux - Unzip Errors


Hi Guys,

I am stuck with an unzip error, that happens when the command is run from a shell script..

Archive: /Somefolder/sample.zip
inflating: /Somefolder/f1/f2/f3/sample.txt (warning) cannot set times

This is the error I get ...

The f1/f2/f3/sample.txt is the content of the zip.

Any body knowss anythign about this..
I couldn't replicate the error manually and all works fine when done manually..
 
Old 11-25-2009, 10:33 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,331

Rep: Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089
Quote:
Originally Posted by guru_ks2004 View Post
Hi Guys,

I am stuck with an unzip error, that happens when the command is run from a shell script..

Archive: /Somefolder/sample.zip
inflating: /Somefolder/f1/f2/f3/sample.txt (warning) cannot set times

This is the error I get ...

The f1/f2/f3/sample.txt is the content of the zip.

Any body knowss anythign about this..
I couldn't replicate the error manually and all works fine when done manually..
If it works manually, then you've got a problem in your shell script.

Since you don't post your shell script, or give any details about it or your environment, how can we help you?
 
Old 11-26-2009, 03:30 AM   #3
guru_ks2004
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hiya,

The script contains,

unzip <zip file name with the path> -d <current dir>

Apart from this, the script does nothing..
 
Old 11-26-2009, 04:07 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
1/ It's not an error, only a warning. Unzip tries to set the timestamp on the file according to the content of the zip file and fails at that. The file should neverthelss be uncompressed. There are options to disable the time-stamping, but that only fixes the warning, not the real problem.

2/ You didn't answer TBOne's question: from which environment are you calling the script? From a simple terminal window? From cron?... Can you get the script
to print out it's environment, eg
Code:
env > script_env.txt
and then post script_env.txt's contents?

3/ What type of filesystem is the target directory located on? I'm thinking maybe the filesystem doesn't support the usual time-stamping done by unzip.
Try
Code:
df -h /your/target/folder
of course replacing /your/target/folder with the right path.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between using "jar xvf" and "unzip" to unzip the zip-file? thomas2004ch Linux - Newbie 4 08-27-2009 06:11 AM
how to unzip a zip folder in redhat linux varunkant Linux - Newbie 5 08-07-2008 02:03 PM
unzip linux kernel problem xpp Linux - General 6 03-31-2006 03:11 PM
about unzip to unzip some chinese files' trouble arcow Linux - Software 0 03-24-2006 03:25 AM
File Unzip Errors sbb Linux - Newbie 3 08-29-2003 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration