Re: How to untar .tar.gz when you don't have "-z" option?
From: Ted Nolan (ted_at_loft.tnolan.com)
Date: 10/26/05
- Next message: phillip.s.powell_at_gmail.com: "Re: How to untar .tar.gz when you don't have "-z" option?"
- Previous message: Dave Hinz: "Re: How to untar .tar.gz when you don't have "-z" option?"
- In reply to: phillip.s.powell_at_gmail.com: "Re: How to untar .tar.gz when you don't have "-z" option?"
- Next in thread: Stephane CHAZELAS: "Re: How to untar .tar.gz when you don't have "-z" option?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 Oct 2005 16:15:53 GMT
In article <1130340711.877575.274190@g14g2000cwa.googlegroups.com>,
<phillip.s.powell@gmail.com> wrote:
>
>
>I am not used to this interface, sorry! AUGH!
>
>Ok, an update.. I was able to to find an alternative to "tar -z", only
>that it fails using FreeBSD UNIX:
>
>[BASH]
>cd $1
>hasGunzip=`which gunzip | grep -E 'no gunzip'`
>if [ -n $hasGunzip ]; then
> gunzip -c $1/$3_$4.tar.gz | tar -xvf
>else
> echo "You can't unzip, you're screwed"
> exit
>fi
>[/BASH]
>
>However, upon using this code I get the following error message:
>
>[Quote]
>
>tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile]
>[blocksize] [[-C directory] file] ...
>
>[/Quote]
>
>However, using Red Hat Enterprise Level 3 version of UNIX, the
>untarring takes place with no faults of any kind.
>
>The destination, however, is FreeBSD so it must work for both platforms
>of UNIX.
>
>Phil
>
>phillip.s.powell@gmail.com wrote:
>> Sorry, not an option in this case. It has to be packaged up and sent
>> to a system that doesn't have "tar -z" option (although it does have
>> gzip/gunzip though)
>>
>> Phil
>
Just a note:
If the FreeBSD system you are using doesn't support -z, then it is something
the hosting company has done to break it. Out of the box, both FreeBSD 4.x &
FreeBSD 5.x support 'z' in the default /usr/bin/tar
Ted
- Next message: phillip.s.powell_at_gmail.com: "Re: How to untar .tar.gz when you don't have "-z" option?"
- Previous message: Dave Hinz: "Re: How to untar .tar.gz when you don't have "-z" option?"
- In reply to: phillip.s.powell_at_gmail.com: "Re: How to untar .tar.gz when you don't have "-z" option?"
- Next in thread: Stephane CHAZELAS: "Re: How to untar .tar.gz when you don't have "-z" option?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|