j*******r 发帖数: 201 | 1 Here is my .netrc ( username: yang pwd:yangpwd)
"machine 128.10.1.5 login yang password yangpwd"
The problem is when I run ftp 128.10.1.5, it said
Error - .netrc file not correct mode.
Remove password or correct mode.
Can any daxia tell me how to fix this?
Thanks. |
|
j*******r 发帖数: 201 | 2 I just wrote a batch file to download files by ftp like this:
ftp -n 128.104.1.1
user yang yangpwd
ascii
verbose
cd data
get aaa.zip
close
bye
But after being connected, it stopped before verifying username
and password. Can anyone tell me what's wrong?
Thanks a lot, |
|
c**o 发帖数: 166 | 3 try:
ftp -n > /dev/null <
open 128.104.1.1
user yang yangpwd
bin
cd data
get aaa.zip
bye
EOF |
|