V
V
vvhy_Not2017-10-11 10:33:19
linux
vvhy_Not, 2017-10-11 10:33:19

How to append file content to a file on another server?

Hello!
There was a following task.
There are two servers serv1 and serv2. There is a FileOne file on serv1. We need to add the content of this file to the FileTwo file on serv2, without losing the current content of FileTwo.
Can you please tell me which team can do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2017-10-11
@vvhy_Not

something like this
cat FileOne | ssh [user]@[server] 'tee -a /path/FileTwo'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question