Tag Info

Hot answers tagged

1

Appears you need to install ftp. Such an insecure protocol isn't installed/enabled by default on RHEL 6. yum install proftpd will install ftp.


1

Example of 'here' document after creating a ~/.netrc with conections/users/passwords. #!/bin/bash ftp 11.1.1.11 << eof ascii get /tmp/myfile.txt bye eof Pitty you can't use lftp, it's a great client and I don't see any security difference between having your passwords in ~/.netrc or having them in the script if you give it ...


1

Have you looked at rsync? From how I interpret your question, this should accomplish exactly what you want. Here is a description how to setup an rsync daemon to connect without ssh.


1

A macdef directive, like the others (login, password, etc.), only applies to the machine-headed stanza that it's in. As far as I know, putting a macdef directive before the first machine stanza has no effect, and there's no way to have a macro available before the open command is executed. Your macro will work if you open a connection to the site first: $ ...


1

Using strace ftp on my fedora, it didnt even read ~/.netrc unless I ran it with a hostname on the command line. Also, it didnt recognise the macro until I explicitly added a blank line after it, at the end of file! So try $ ftp ftp.nyxdata.com ftp> $download_nyse_index



Only top voted, non community-wiki answers of a minimum length are eligible