当前位置: 动力学知识库 > 问答 > 编程问答 >

linux - Shell script - Read content on Server#1, process on Server#2

问题描述:

I need to work on a current logfile, hosted on Server#1, without being ON Server#1.

How can I read the content, to get scripts process on an other machine (Server#2)

I don't want Server#1 to be impacted by my scripts.

网友答案:

Use ssh to get the log file contents, and pipe it to the script running locally:

ssh Server1 cat logfile | path/to/script
网友答案:

scp, netcat, FTP, rsync... you have so many options.

分享给朋友:
您可能感兴趣的文章:
随机阅读: