Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '...a few more ftp hints' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
...a few more ftp hints
Authored by: Auricchio on Sep 04, '02 12:58:25PM
1. macdef init is run whenever you start ftp, so you can put useful stuff in that macro. For example, if the remote system doesn't identify itself as a unix system, ftp won't switch to binary mode. It's easy to put that command in the init macro. (Note that you can use binary mode for transferring ascii files just fine; I always use binary mode for everything.)

2. If you run ftp as HOME=. ftp xxxx, ftp will use the .netrc file in the current directory instead of your home directory. For the curious, this command causes the shell to set $HOME for the duration of the current command. Csh users probably need to do this in a subshell, e.g. (set HOME=. ; ftp xxxx) .

[ Reply to This | # ]