Last active
December 27, 2021 12:54
-
-
Save svinouze/6f4ec4627e38df99932b6ad3e799b4c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# connect to FTP | |
echo open $FTP_HOST >> ftp.txt | |
echo user $FTP_USER $FTP_PWD >> ftp.txt | |
# execute script | |
lftp -f ftp.txt | |
# cleanup | |
rm ftp.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment