I have a coworker who was gripping the log file on one system, redirecting the output into a file, and then using
sftp to put the file on a server. He asked if it was possible to simply redirect his output directly to another system.
I tried various ideas using
$ cat .profile | scp qazwart@server2 # Nope didn't work $ cat .profile | scp - qazwart@serer2 # Told me "-" doesn't exist
I had no better luck with
Is there a way to redirect output of a process from one system to a file on another remote lsystem?