Run FTP session from bash script
- by Adam Salkin
I'm trying to write a BASH script to test if an FTP site that I own is running. I therefore want the bash script to connect to the FTP site, log in with a dummy account and redirect the output to a file that I can then grep to confirm that the login succeeded.
(I know that putting user/pass in a file is not recommended, but this dummy account is…