Created
December 17, 2012 14:17
-
-
Save robatwilliams/4318604 to your computer and use it in GitHub Desktop.
Send commands to an interactive program (e.g. ftp / lftp) from a shell script
This file contains hidden or 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
lftp hostname <<SCRIPT | |
put ~/myfile.txt | |
quit | |
SCRIPT | |
echo "now carry on with script (check return code etc.)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment