FTP While transfering files to local machine to remote machine | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


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.

FTP While transfering files to local machine to remote machine

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-01-2013
Venkatesh1 Venkatesh1 is offline
Registered User
 
Join Date: Jul 2012
Last Activity: 29 October 2013, 2:19 AM EDT
Location: chennai
Posts: 62
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
PikK45 PikK45 is offline
Registered User
 
Join Date: Jul 2012
Last Activity: 10 July 2014, 12:57 PM EDT
Location: Chennai
Posts: 567
Thanks: 43
Thanked 74 Times in 72 Posts
Can you please post ur script here??
Sponsored Links
    #3  
Old 03-01-2013
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
 
Join Date: Nov 2007
Last Activity: 27 October 2014, 10:04 PM EDT
Location: New Zealand
Posts: 1,044
Thanks: 21
Thanked 26 Times in 25 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
Closed Thread

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 06:41 AM.