Add file-read to ssh

This commit is contained in:
Paul Taylor 2018-05-28 08:44:53 +01:00 committed by Andrea Cardaci
parent bf5cec98f3
commit 765d2d1aa4

View File

@ -17,4 +17,9 @@ functions:
RPATH=where_to_save RPATH=where_to_save
LPATH=file_to_send LPATH=file_to_send
ssh $HOST "cat > $RPATH" < $LPATH ssh $HOST "cat > $RPATH" < $LPATH
file-read:
- description: Read lines from text files (error-based approach).
- code: |
LFILE=file_to_read
ssh -F $LFILE localhost
--- ---