How do I SSH to a server, get a file from that server, and append it to a file on the original server?

49 Views Asked by At

So I have a shell script script that runs on two different Unix servers that puts its output into a file on each of the respectable servers. From server A, I'd like to SSH to server B, get the output file and append that to the output file on server A so i only have to read one report. What would some example syntax for that be?

1

There are 1 best solutions below

0
On

Get the file using scp, then concatenate both files