Create login script that keeps me in lftp
I would like to create script, that connects me to FTP server with lftp.
The problem is, that I want to stay connected to the FTP (stay in lfpt)
after the script ends. Is there a way to do it?
The login script is easy, but this obviously returns me back to bash after
the script ends...
#!/bin/bash
gpg -q _pass.gpg
pass=$(cat _pass)
rm -f _pass
lftp << EOF
set ssl:verify-certificate no
open ....
ls
EOF
No comments:
Post a Comment