in reply to How could i FTP specific file from remote system ?
and the command that invokes it:machine foo.network-lynx.net login don password zebra macdef init cd /usr/local/test_data/reports binary mget *599* exit
Note that the netrc file MUST ONLY be readable by the user that invokes the script.system("ftp -in -N /var/web/scripts/netrc don@foo.network-lynx.net") && die "Couldn't complete netrc ftp! $!\n";
|
|---|