Sponsored Content
Top Forums UNIX for Advanced & Expert Users How can i unzip .gz extension file? Post 302328239 by prasad00124 on Tuesday 23rd of June 2009 10:40:06 PM
Old 06-23-2009
if u r downloading the file from Unix servers and the file size is larger , i guess u could nt open this file .as my previous knowledge , please follow this procedure it might be helpful . gzip filename.gz file server to local server . it will be extracted to local server . u can able to view the document. or after downloading . or download the file using ftp and extract it . it will be work . if u r downloading the directly from server it might n't be downloaded properly .

With Regards,
Prasad
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to unzip a .zip file when

there is no unzip package present. (2 Replies)
Discussion started by: yogesh_powar
2 Replies

2. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

3. Solaris

how to unzip File which has no extension

Hi experts, I have files as you see which is in gzip format. How can i uncompress it using gunzip/gzip/uncompress?? The file has NO extension. Do i need to rename the file as *.Z /or other and then unzip the file. bash-2.05$ file Files029999200711101618 Files029999200711101618: gzip... (13 Replies)
Discussion started by: thepurple
13 Replies

4. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

5. Shell Programming and Scripting

How to unzip the file

Hi, I have a file in the form of .zip in unix directory, now I want to unzip the file in unix environment. May I know how to unzip this file File name: cust.zip Thanks in Advance... Aswice (1 Reply)
Discussion started by: aswice
1 Replies

6. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

7. UNIX for Dummies Questions & Answers

unzip single file in zip file to STDOUT

Hi, Does anyone know if there is an unzip command similar to tar -xOf $tarBall $fileInTarFile which will untar a single file in a tar ball to STDOUT ? I want to do the same but with a .zip (ZIP archive) file. - Andy ---------- Post updated at 05:56 PM ---------- Previous update... (0 Replies)
Discussion started by: andyatit
0 Replies

8. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

9. UNIX for Dummies Questions & Answers

Display the .csv extension files based on .done extension fine

Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory ... (2 Replies)
Discussion started by: girija.g6
2 Replies

10. Shell Programming and Scripting

Unzip a gz file

Please tell me the unix command how to unzip a gz file(say a qwe.gz) and the orginal gz file should remain intact. Thanks in advance (7 Replies)
Discussion started by: pranabpal
7 Replies
FTP_NB_FGET(3)								 1							    FTP_NB_FGET(3)

ftp_nb_fget - Retrieves a file from the FTP server and writes it to an open file (non-blocking)

SYNOPSIS
int ftp_nb_fget (resource $ftp_stream, resource $handle, string $remote_file, int $mode, [int $resumepos]) DESCRIPTION
ftp_nb_fget(3) retrieves a remote file from the FTP server. The difference between this function and ftp_fget(3) is that this function retrieves the file asynchronously, so your program can perform other operations while the file is being downloaded. PARAMETERS
o $ftp_stream - The link identifier of the FTP connection. o $handle - An open file pointer in which we store the data. o $remote_file - The remote file path. o $mode - The transfer mode. Must be either FTP_ASCII or FTP_BINARY. o $resumepos -The position in the remote file to start downloading from. RETURN VALUES
Returns FTP_FAILED or FTP_FINISHED or FTP_MOREDATA. EXAMPLES
Example #1 ftp_nb_fget(3) example <?php // open some file for reading $file = 'index.php'; $fp = fopen($file, 'w'); $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // Initate the download $ret = ftp_nb_fget($conn_id, $fp, $file, FTP_BINARY); while ($ret == FTP_MOREDATA) { // Do whatever you want echo "."; // Continue downloading... $ret = ftp_nb_continue($conn_id); } if ($ret != FTP_FINISHED) { echo "There was an error downloading the file..."; exit(1); } // close filepointer fclose($fp); ?> SEE ALSO
ftp_nb_get(3), ftp_nb_continue(3), ftp_fget(3), ftp_get(3). PHP Documentation Group FTP_NB_FGET(3)
All times are GMT -4. The time now is 03:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy