I'm trying to create a script to log into something similar to ftp, but it does not use ftp commands. I'm thinking of trying a batch file or Python solution.
Manually it's done through a cmd shell as follows:
C:\Users..etc>
passiveftp 123.45.67.890 #connects to ftp in passive mode
#then asks for username and you don't see 'C:\Users..etc.' anymore
Connceted to 123.45.67.890
220 (vsFTPd 3.0.2)
User name:
#here you'd enter user name, then password, then start dl/ul'ing
For a standard ftp connection, I found that you can use a separate text file with each input and then just run the following command:
ftp -s:filename.txt
But it looks like this ftp program does not accept that. I tried it with the following text file:
passiveftp 123.45.67.890
usernamehere
passwordhere
hash
This resulted in the following output:
C:\Users\etc.>passiveftp -s:filename.txt
ftp> Invalid command.
ftp> Invalid command.
ftp> Invalid command.
ftp> Hash mark printing On ftp: (2048 bytes/hash mark).
ftp>
Is there a way to automate this scenario like what can be done with ftp commands?