Score:0

how to monitor if a file size not change do something in ubuntu

ru flag

the goal is that if my file.log size does not change in 10 minutes then send two HTTP requests to some servers. something like this:

check file.log 
if not change in 10 min
send HTTP request to http://my_url:8008 with username:admin and password:admin
send HTTP request to http://my_url:8009 

so what efficient way to do that? use script? any monitoring tools?

Artur Meinild avatar
vn flag
Look into basic bash scripting and `curl`.
David avatar
cn flag
Not a question for this Ubuntu support site.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.