I'm trying to get a list of all the files we have on a server ( specifically every pdf file we have there ). I've tried using total commander and search for the files. It worked to some extent, as in, i got a list of every pdf we had there, but no way of exporting the results ( we have 100.000+ files there )
I've tried using a bash script to get the information, but i'm not very experienced with linux, and i don't really know what i'm doing.
My script looks like this :
#!/bin/bash
hostname="<host>"
ftp -i -nv $hostname << EOF
user <username> <password>
ls -R
EOF
Running the above script i get
?Invalid command
501 Illegal PORT command
ftp: bind: Address already in use
221 Goodbye
Any help or pointing me on what to search would be greatly appreciated.
With curl, this is handycurl ftp://yourftpserver/dir/ --user username:password
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With