Magari a qualcuno può interessare:
ecco la put:
HOST=hostname
USER=username
PASS=password
echo "Start of sftp put…"
lftp -u ${USER},${PASS} sftp://${HOST} <<EOF
cd directory_path
put filename
bye
EOF
ed ecco la get:
HOST=hostname
USER=username
PASS=password
echo "Start of sftp get…"
lftp -u ${USER},${PASS} sftp://${HOST} <<EOF
cd directory_path
get filename
bye
EOF

Commenti recenti