Skip to content

Instantly share code, notes, and snippets.

@svinouze
Last active December 27, 2021 12:54
Show Gist options
  • Save svinouze/6f4ec4627e38df99932b6ad3e799b4c9 to your computer and use it in GitHub Desktop.
Save svinouze/6f4ec4627e38df99932b6ad3e799b4c9 to your computer and use it in GitHub Desktop.
#!/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