05-28-2003
Incomplete reading and transferring zip file via SAMBA smbclient
Hello,
Anyone out there can help on this problem?
I have a zip file about 34MB containing a file in EBCDIC and is resided on a Windows 2000 server.
This zip file is retrieved and read from a UNIX server via SAMBA "SMBCLIENT" (by default the file is transferred via command bin) and issued error in reading remote file. Despite the read error, the incomplete file did transfer to the UNIX server.
Please explain the error and show how to correct the problem.
Note: I did spme test on read and retrieving zip files from a Windows NT 4.0 server and the zip file was read and transferred completely without errors to the UNIX server.
Thanks.
-------------------------------------------------------------------------------
Below showing the incomplete file copied:
-rw-r--r-- 1 clarify clarify 34078200 May 27 00:33 200304C20_blstnf.zip
Below showing the error messages:
smb: \csf_outputs\prod\2003-apr\cycle20\datalib\> smb: \csf_outputs\prod\2003-ap
r\cycle20\datalib\> getting file \csf_outputs\prod\2003-apr\cycle20\datalib\2003
04C20_blstnf.zip of size 34081006 bytes as 200304C20_blstnf.zip Error ERRSRV - E
RRerror (Non-specific error code.) reading remote file
Error reading file \csf_outputs\prod\2003-apr\cycle20\datalib\200304C20_blstnf.z
ip. Got 34078200 bytes
(3742.94 kb/s) (average 3742.94 kb/s)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am trying to return the name of the resulting file from a .zip archive file using unix unzip command.
unzip c07212007.cef7081.zip
Archive: c07212007.cef7081.zip
SecureZIP for z/OS by PKWARE
inflating: CEP/CEM7080/PPVBILL/PASS/G0063V00
I used the following command to unzip in... (5 Replies)
Discussion started by: oracledev
5 Replies
2. Shell Programming and Scripting
Hi,
I want to transfer html files from windows server to unix server. Those files also have to be assigned proper permissions. Can u people suggest any ideas for this scenario?
Regards,
http://www.unix.com/images/smilies/thumb.gifSanthosh (1 Reply)
Discussion started by: Santhosh_Ind
1 Replies
3. AIX
I have to zip many pdf files and the size of zip file must not exceed 200 MB. When size is more than 200 MB then multiple zip files needs to be created.
How we can achieve this in UNIX?
I have tried ZIP utility but it takes a lot of time when we add individual pdfs by looping through a... (1 Reply)
Discussion started by: tom007
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need to zip a .dat file with .zip extension. I tried using the "zip" command. But shell says. "ksh: zip: not found"
Currently I am using gunzip to zip and changing the extension ".gz" to ".zip" as follows.
mv $file `echo $file | sed 's/\(.*\.\)gz/\1zip/'`
But when I tried... (1 Reply)
Discussion started by: aeroticman
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Is there a way to transfer a file from one unix server from another without entering the login credentials. I know scp and other commands but it prompts the username/password.
However in my script i have a file, who i need to send to another unix server where the content of that file will... (4 Replies)
Discussion started by: gopajitmalakar
4 Replies
6. Shell Programming and Scripting
Hi folks,
Is it possible to create 10GB file in linux and transferring the file to other remote server?
Regards,
J (3 Replies)
Discussion started by: scriptscript
3 Replies
7. Shell Programming and Scripting
Hi
I have a requirement in unix shell where I need to zip multiple files on server to one single .zip file. I dont see zip command in AIX and gzip command not doing completely what I want.
One I do .zip file, I should be able to unzip in my local Computer.
Here is example what I want... (9 Replies)
Discussion started by: RAMA PULI
9 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
One of our clients has an old QNX server system that writes history backups on ZIP disks. They then wish to take these back up ZIP disks, plug them into a Win7 box with an external ZIP drive and copy them across to an external Hard Drive.
The files can be seen on the Win7 box but wont... (3 Replies)
Discussion started by: Beldanan
3 Replies
9. UNIX for Beginners Questions & Answers
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (2 Replies)
Discussion started by: b.saipriyanka
2 Replies
10. Shell Programming and Scripting
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (1 Reply)
Discussion started by: b.saipriyanka
1 Replies
LEARN ABOUT PHP
zip_entry_open
ZIP_ENTRY_OPEN(3) 1 ZIP_ENTRY_OPEN(3)
zip_entry_open - Open a directory entry for reading
SYNOPSIS
bool zip_entry_open (resource $zip, resource $zip_entry, [string $mode])
DESCRIPTION
Opens a directory entry in a zip file for reading.
PARAMETERS
o $zip
- A valid resource handle returned by zip_open(3).
o $zip_entry
- A directory entry returned by zip_read(3).
o $mode
- Any of the modes specified in the documentation of fopen(3).
Note
Currently, $mode is ignored and is always "rb". This is due to the fact that zip support in PHP is read only access.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
Note
Unlike fopen(3) and other similar functions, the return value of zip_entry_open(3) only indicates the result of the operation and
is not needed for reading or closing the directory entry.
SEE ALSO
zip_entry_close(3), zip_entry_read(3).
PHP Documentation Group ZIP_ENTRY_OPEN(3)