O
O
onoff012022-02-16 10:15:24
Data transfer
onoff01, 2022-02-16 10:15:24

How to transfer information from a text file to the server?

On different computers, the program generates a txt file, where it writes "logs" - what it does, how it does it, when it does it, etc. Each computer has its own txt file and all PCs are on the same local network.
The question is - how can you implement the collection of information from these text files in real time in one place? (Let's save in one text file on the local server).
I'm looking at implementation options in python, node js.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolay Savelyev, 2022-02-16
@AgentSmith

via POST requests

V
Vladimir Kuts, 2022-02-16
@fox_12

In this formulation of the problem, the one-liner on the tower will also cope:

cat inp001.txt | ssh -i somekey.key [email protected] "cat >> /tmp/out001.txt"

And so there are many more ways - through the API through post-requests, through some kind of message queue intermediary, through transfer via ftp, and so on ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question