Hi there!
I've used the ftp command to transfert datas between linux to unix box.
The answer of this command, was:
It strange because the transfert was complete and it brings two messages, the first is successful from PORT command and the second is an error from EPRT command!
So, It seems that linux use both EPSV/EPRT (rfc2428) and PORT/PASV (rfc959)! I'm using the return code of the command in a script and i don't want to receive the EPRT message...
Has anyone an idea why linux do that? It's possible to disable the EPSV/EPRT command?
Regards
How can I use it to copy and get files from other machines.
if anyone knows of this FTP command, please post all that you know about it here so I can learn more. (2 Replies)
Hi there,
It seems that the ftp command FTP: quote allo <byte size> does not initiate straight away? Why might this be, scenario below.
I have had to up the byte limit in order to put a control file of 70K bytes on to a server. This placing of a control file is done at the beginning of a... (1 Reply)
I have been trying to perform the following command without success
truss -feo truss.out ftp -nvd < ftpcmds.txt
The error I am getting is
"truss: cannot trace set_id or unreadable object file /usr/bin/ftp"
I have tested the file that contains the ftp commands and it works fine with
ftp... (5 Replies)
Hi ,
I am ftping one file from the remort server to local server. I have to choose the recent file from the remote server . To get the recent file i am using the following command.
ftp -nvi $IP_ADDRESS
user $USER_NAME $PASSWORD
bin
lcd $LOCAL_DIR
cd $REMOT_DIR
filename=ls -t ff*... (1 Reply)
yesterday i was given an FTP command to use on UNIX Solaris and it was very straight forward and that's probably why i don't remember it, i only remember convoluded things apparently!
but it was something as simple as this:
ftp xyz_abc.com
but that's apparently not it, does anyone know... (2 Replies)
hi,all, i have a question to trouble you.
a workstation named AAA, and open the ftp services to permit user download and upload files. i have root password.
a pc install windows 2k named BBB, someone install a serv-u ftp ( a ftp server software ) to transfer data. i don't have the... (4 Replies)
Hi,
I am new to shell scripting, I just wan to know that if i want to do ftp that is I have the url of the remote server that is pngpcdb1.walmat.com , Now i want to do ftp and want to transfer some files...how ftp command in unix would help me in that...!!:confused: (3 Replies)
do we have any command run_ftp or this is a function.
run_ftp -d $dir $fname $ddir $file b (2 Replies)
Discussion started by: ramkumar15
2 Replies
LEARN ABOUT ULTRIX
netrc
netrc(5) File Formats Manual netrc(5)Name
netrc - file used by ftp auto-login procedure (.netrc)
Description
The file contains frequently needed options for transfers. The file resides in the owner's home directory on the machine from which the
owner initiates the file transfer. If the file includes passwords, set permissions on the file with so that only the owner has read per-
mission.
The file uses the following format:
o Each line of the file defines options for a specific machine.
o A line in the file can be either a machine line or a default line.
o The default line must be the first line in the file if it is present.
o Fields in a default line appear in this order: default, default machine name.
o Fields in a machine line appear in this order: machine, machine name, options.
o Fields on each line are separated by spaces or tabs.
The following are valid options for a machine line:
-------------------------------------------------------------------
Option Parameter Default Description
-------------------------------------------------------------------
machine machine name none Identifies a remote
machine name
login name local name Identifies user on the
remote machine
password password none Password for remote
login name
account password none Additional account password
macdef macro name none Defines a macro like the
ftp macdef command
-------------------------------------------------------------------
Example
This is an example of a file:
machine cactus login smith
machine nic.ddn.mil login anonymous password anonymous
machine palm.stateu.edu login smith password ualonerwelcome
macdef byenow
quit
macdef ls
dir
The first line allows to log Smith into the machine after prompting for and receiving Smith's password, as shown in this example:
$ ftp cactus
Connected to cactus.tech.edu
FTP server ready.
Password required for SMITH.
User logged in
ftp>
The second line of the file allows the user to perform an anonymous transfer after typing this command:
$ ftp nic.ddn.mil
See for a description of anonymous FTP transfers.
The third line allows Smith to log into the machine Smith will not be prompted for a password because this machine line includes password
information. Because the file includes password information, the file must not have read permission set for world and group.
The lines are macro definitions, which operate much like shell aliases. A blank line must follow each macro definition to signal the end
of the macro. The first macro definition defines as an alias for the command.
See Alsoftp(1c)netrc(5)