02-14-2018
Are you doing the FTP transfer in 'binary' mode? If not, that will be the problem.
10 More Discussions You Might Find Interesting
1. HP-UX
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
2. Shell Programming and Scripting
I'm creating a bsh shell to unzip a file from one directory into another. The directory that holds the zip files has zip files constantly being added to it, so I am testing it before it does the unzip and more.
Right now my code looks like this:
unzip -tq $ZIP_PATH/$ZIP_NAME >/dev/null
if ... (5 Replies)
Discussion started by: skwyer
5 Replies
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. UNIX for Dummies Questions & Answers
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
7. UNIX for Dummies Questions & Answers
All,
I am trying to unzip a file, when i doing i am seeing the below error. I have more than enough memory space in the directory where i am unziping. Can you please help me to find out the issue
I dont know why i am getting disk full error. I have more space in /pa01 directory
... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
How to unzip a .rar file in unix.
I tried unrar command but it doesnt work.
Any help will be appreciated
Thanks (10 Replies)
Discussion started by: irudayaraj
10 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
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
LEARN ABOUT MOJAVE
curlopt_resume_from
CURLOPT_RESUME_FROM(3) curl_easy_setopt options CURLOPT_RESUME_FROM(3)
NAME
CURLOPT_RESUME_FROM - set a point to resume transfer from
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RESUME_FROM, long from);
DESCRIPTION
Pass a long as parameter. It contains the offset in number of bytes that you want the transfer to start from. Set this option to 0 to make
the transfer start from the beginning (effectively disabling resume). For FTP, set this option to -1 to make the transfer start from the
end of the target file (useful to continue an interrupted upload).
When doing uploads with FTP, the resume position is where in the local/source file libcurl should try to resume the upload from and it will
then append the source file to the remote target file.
If you need to resume a transfer beyond the 2GB limit, use CURLOPT_RESUME_FROM_LARGE(3) instead.
DEFAULT
0, not used
PROTOCOLS
HTTP, FTP, SFTP, FILE
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com");
/* resume upload at byte index 200 */
curl_easy_setopt(curl, CURLOPT_RESUME_FROM, 200L);
/* ask for upload */
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
/* set total data amount to expect */
curl_easy_setopt(curl, CURLOPT_INFILESIZE, size_of_file);
/* Perform the request */
curl_easy_perform(curl);
}
AVAILABILITY
Always
RETURN VALUE
Returns CURLE_OK
SEE ALSO
CURLOPT_RESUME_FROM_LARGE(3), CURLOPT_RANGE(3), CURLOPT_INFILESIZE(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_RESUME_FROM(3)