equivalent of ftp put and append in scp

后端 未结 2 1519
清酒与你
清酒与你 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 11:53

    scp can not append (ssh can, but it is not always an option). You can copy remote file, append it locally and then put it back.

    0 讨论(0)
  • 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"
    
    0 讨论(0)
提交回复
热议问题