04-19-2002
Thanks for your help.
I haven't been able to confirm the file permissions yet, because this problem happens infrequently (it happens to screw a lot of things up when it does happen though...).
I did find out though on this version of NT if you use 'get' to retrieve a file that doesn't exist NT creates it for you with filesize=0...So it sounds like that could be the problem.
mh.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
how to compare file size which has been received through ftp get from a remote location with local copy available any clue
regards (5 Replies)
Discussion started by: sathiya
5 Replies
2. Shell Programming and Scripting
The FTP perl module does not have any function which checks if the file downloaded is of size 0. Is there any way in perl to check while getting the files through FTP?
Sometimes, there might be a problem with FTP and the downloaded file maybe of size 0. Hence, I would like to FTP that file... (1 Reply)
Discussion started by: rahulrathod
1 Replies
3. Shell Programming and Scripting
Is possible if I want to campare file size on source and destination after ftp transfer?
If anybody know, please explain to me. (1 Reply)
Discussion started by: icemania
1 Replies
4. Shell Programming and Scripting
Hi,
I want to compare the size of the files in my local machine before ftp ing it and the size of the file in the remote machine i.e after ftping . SO that the ftp is successful . (3 Replies)
Discussion started by: dineshr85
3 Replies
5. Shell Programming and Scripting
I want to trasfer file from
1. Unix server A to server B
2. Unix server A to windows directory
Is there a way to check the size before and after FTP.
I want to check the size of the file in server A before FTP and in server B after FTP in case 1
In case 2 I want to check the size of... (1 Reply)
Discussion started by: i.scientist
1 Replies
6. UNIX for Dummies Questions & Answers
Hi there,
We I attempt to rcp/ftp data from server A to server B. It copies until halfway and throw out the error:
rcp: connection lost
ftp netin: Connection reset by peer
421 Service not available, remote server has closed connection
However, when rcp/ftp from server A to server C, it... (1 Reply)
Discussion started by: *Jess*
1 Replies
7. Shell Programming and Scripting
Hi
I am doing a FTP process through which I am copying a file from my local server to Remote server. After this I want to check the size of the file
Below is my program:
LOCALDIR=/batch/ediprocess
REMOTESERVER=test.appl.com
REMOTEPATH=batch/ftpTest
LOGIN=px
PASSWORD=abcd
ftp -n... (3 Replies)
Discussion started by: shanth_chandra
3 Replies
8. Shell Programming and Scripting
Dear All,
Good Evening!!
I have a requirement to ftp a 220GB backup file to a remote backup server.
I wrote a script for this purpose.
But it takes more than 8 hours to transfer this file.
Is there any other method to do it in less time???
Thanks in Advance!!!
---------- Post updated... (5 Replies)
Discussion started by: Naga06
5 Replies
9. UNIX for Advanced & Expert Users
Hi AM using unix Aix Ksh
I need to clarify regarding sending the zero size file to another server.
VAL=ftp.sh -c put souce_file Dest_file $1 $2 $3 $4 $5
$VAL 2 > $ERR
When am Sending the Zero Size File getting alerts netout write returned Zero.
But i would like to know $VAL... (4 Replies)
Discussion started by: Venkatesh1
4 Replies
10. IP Networking
On Oracle Linux 5, 64 bit (derivative of RHEL) ... I have a shell script that runs every Sunday, that ftp's a bunch of files from server 'prod' to server 'test'. Script executes on 'test'. This has been running for YEARS with no problem. Normally the FTP step takes about 1.5 to 2 hours. (pulls... (8 Replies)
Discussion started by: edstevens
8 Replies
netrc(4) Kernel Interfaces Manual netrc(4)
NAME
netrc, .netrc - Specifies automatic login information for ftp
SYNOPSIS
$HOME/.netrc
DESCRIPTION
The .netrc file contains the information used by the automatic login (autologin) feature of the ftp command. It is a hidden file in your
home directory and must be owned by the user logging in, or by the root user. If the .netrc file contains a login password, the file's
permissions must be set to 600 (read and write by owner only).
The .netrc file can contain the following entries (separated by spaces, tabs, or newlines): Where host is the name of a remote host. This
entry begins the definition of the autologin process for the specified host. All following entries up to the next machine entry or the end
of the file apply to that host. This is the same as machine, except that default matches any name. There can be only one default token,
and it must appear after all machine tokens. This is normally used as follows: default login anonymous password user@site The preceding
command line gives the user automatic anonymous ftp login to machines not specified in .netrc. This can be overriden by using the -n flag
to disable autologin. Where user is the username to use at the remote host. If this entry is found, the autologin process initiates a
login using the specified name. If this entry is missing, the autologin process fails. Where password is the login password to be used.
The autologin process supplies this password to the remote server. A login password must be established at the remote host and that pass-
word must be entered in this file, or the autologin process fails and you are prompted for the login password. Where password is the
account password to be used. If this entry is found and an account password is required at the remote host, the autologin process supplies
the password to the remote server. If the remote host requires an account password but this entry is missing, the autologin process
prompts for the account password. Where macro is the name of an ftp subcommand macro. The macro definition starts on the following line
and is defined to contain all of the following ftp subcommands up to the next blank line. If the macro is named init, ftp executes the
macro upon successful completion of the autologin process.
FILES
Contains automatic login information.
RELATED INFORMATION
Commands: ftp(1). delim off
netrc(4)