Score:0

Script Help to ping and restart program

us flag

I just want a script to ping google and then

  1. If successfull, do nothing
  2. If fails: 2A) Close/kill brave-browser 2B) Start brave-browser

I would like this script to run every 15 minutes

I lose my internet connection frequently and at random times. When the modem reconnects itself to the internet, my server machine will not reconnect because the vpn is loaded through brave and it just sits unchange until I manually reconnect it.

Cheers.

waltinator avatar
it flag
I've written a bash script to help with this: `https://github.com/waltinator/net-o-matic` It watches the connection, and when the connection drops, does a user-specified thing to try to reconnect.
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.