livestrong
Technical User
Hi Everyone
This is my 1st attempt at writing an automated ftp script
and im kinda stuck atm
i understand that -n restrains ftp from running through the normal process of logging in thus allowing us to pass the username and pass.
However my problem is when i run the above script and the try to run a command "dir"
i get the following message from the ftp server :
[myuser@myserver ~]$ ./open-range.sh
Connected to ftp.open-range.com.
220 BulletProof FTP Server ready ...
500 Unknown command.
500 Unknown command.
KERBEROS_V4 rejected as an authentication type
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
530 Please login with USER and PASS first.
Passive mode refused. Turning off passive mode.
530 Please login with USER and PASS first.
ftp: bind: Address already in use
Any ideas???
Thanks
This is my 1st attempt at writing an automated ftp script
and im kinda stuck atm
Code:
#!/bin/sh
ftp -n ftp.open-range.com
quote user <myuser>
quote pass <mypass>
i understand that -n restrains ftp from running through the normal process of logging in thus allowing us to pass the username and pass.
However my problem is when i run the above script and the try to run a command "dir"
i get the following message from the ftp server :
[myuser@myserver ~]$ ./open-range.sh
Connected to ftp.open-range.com.
220 BulletProof FTP Server ready ...
500 Unknown command.
500 Unknown command.
KERBEROS_V4 rejected as an authentication type
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
530 Please login with USER and PASS first.
Passive mode refused. Turning off passive mode.
530 Please login with USER and PASS first.
ftp: bind: Address already in use
Any ideas???
Thanks