Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-01-2013
Registered User
 
Join Date: Jul 2012
Location: chennai
Posts: 59
Thanks: 6
Thanked 0 Times in 0 Posts
FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its possible to transfer zero size files through script ?
Sponsored Links
    #2  
Old 03-01-2013
Registered User
 
Join Date: Jul 2012
Location: Chennai
Posts: 506
Thanks: 37
Thanked 64 Times in 62 Posts
Can you please post ur script here??
Sponsored Links
    #3  
Old 03-01-2013
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 974
Thanks: 6
Thanked 15 Times in 15 Posts
It should be fine, but will depend on the ftp client you are using, some could potentially skip zero length.

Some questions for you to consider:
When you are manually doing the transfer, are you doing the *exact same thing* as your script would do? If you are using a different command or different parameters, then focus your attention there.
Does the script do any checks that your manual process does not? If you are doing a checksum, you might have some bug in the script that fails to handle zero-length properly, or your script may be explicitly deleting zero length files considering them to be failed transfers.

But as PiK45 says, you'll need to list the command/script you are using to get any specific help here I suspect.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Transfering files from one to another machine in different directories madhurjajoo Shell Programming and Scripting 1 04-28-2012 08:02 AM
How to transfer files from unix machine to local machine using shell script? vidhyaS Shell Programming and Scripting 1 08-08-2011 10:27 AM
Using local variable on a remote machine jangozo Shell Programming and Scripting 4 03-20-2011 05:50 AM
To find the LATEST file from a dir on REMOTE machine and SCP to local machine? me_ub Red Hat 3 07-08-2009 12:57 AM
[FTP]opying of file from remote to local machine sonbag_pspl Solaris 1 08-12-2004 04:15 AM



All times are GMT -4. The time now is 01:37 AM.