equivalent of ftp put and append in scp

后端 未结 2 1531
清酒与你
清酒与你 2021-02-07 11:10

I have a legacy script which I am not able to understand.

The script is to transfer 4 files (2 ebcdic format files and 2 pdf files) in unix to mainframes through ftp.

2条回答
  •  春和景丽
    2021-02-07 12:08

    Put is just the normal scp

    scp /path/to/source user@host:/path/to/target
    

    Append only works with a little hack (and not with scp directly)

    cat source | ssh user@host "cat >> /path/to/target"
    

提交回复
热议问题