BASH printf and ftp
Hey.
Does anybody know how can I forward login, password and some commands to ftp command? I'm making a bash script that is intended to put some files on a remote server via ftp periodically. I tried something like this: Quote:
Only: Quote:
Can anybody help me prepare printf command to make this work, please? I apreciate all your answears. Thank you in advance. Best regards. |
Use a "here" document. A few days ago this thread was active which shows how to do it.
http://www.linuxquestions.org/questi...ansfer-778515/ jlinkels |
Quote:
|
my first question is 'why not use scp/ ssh ?'
maybe expect can help. |
Quote:
|
well, if you read the documentation for ftp you'll have heard of a
.netrc file. this enables automatic ftp. |
All times are GMT -5. The time now is 11:02 AM. |