• Re: Log Down

    From ALB@alb@lupinedb.org to alt.computer.workshop,comp.os.linux.advocacy,alt.fan.rush-limbaugh on Sat Oct 11 17:10:50 2025
    From Newsgroup: comp.os.linux.advocacy

    On 11 Oct 2025 20:30:07 GMT, Brock McNuggets wrote:

    On Oct 11, 2025 at 12:47:43rC>PM MST, "ALB" wrote <1a20b5nb42is0.bx3c2saqj8qp.dlg@40tude.net>:

    On 11 Oct 2025 18:55:43 GMT, Brock McNuggets wrote:

    On Oct 11, 2025 at 11:47:51rC>AM MST, "ALB" wrote
    <w1cb91ygg8sd.179spbd2f65tx$.dlg@40tude.net>:

    On 11 Oct 2025 18:45:07 GMT, Brock McNuggets wrote:

    On Oct 11, 2025 at 11:15:45rC>AM MST, "Brock McNuggets" wrote
    <68ea9ed1$1$4167$882e4bbb@reader.netnews.com>:

    I have a script that logs when my network goes down.

    ---------------------------------------------------------------------- >>>>>> set wifiName to "[NETWORK NAME]"
    set wifiPassword to "[NETWORK PASSWORD]"

    set userName to short user name of (system info)
    do shell script ("echo '\\nSTARTING DOWN LOG: " & (current date) as string) &
    "\\n" & "' >> /Users/" & userName & "/Desktop/down.txt"
    repeat
    try
    set thePing to do shell script "ping -c 1 apple.com || ping -c 1 >>>>>> bing.com || ping -c 1 google.com"
    delay 5
    on error
    do shell script ("echo '" & (current date) as string) & "' >> /Users/"
    & userName & "/Desktop/down.txt"
    log "Net Down: " & (current date)
    do shell script "networksetup -getinfo Wi-Fi | grep -q Subnet: ||
    networksetup -setairportnetwork en1 " & wifiName & " " & wifiPassword >>>>>> delay 10
    end try
    end repeat
    ---------------------------------------------------------------------- >>>>>>
    Been using it for years, on a system that I rarely use (hence why logging to
    the desktop is fine, even if not what I would usually do).

    But I want it to do better. If the Internet is down I want a line in the log
    that says:

    *** Internet Down: Oct 11 2025 10:44 AM to Oct 11 2025 11:56 AM

    Of course with the correct dates / times. Working on it... but curious if one
    of the better coders in here can beat me to it. Or does someone have a premade
    solution?

    OK, with help from ChatGPT I got this:

    Nobody gives a flying fuck snit.
    Take your trolling elsewhere.

    YOU do not care about tech, no matter what sock you use. Sure. Thanks for the
    admission.

    I don't care about tech

    I know. And then you blame me. You are responsible for your socking and your lack of interest in tech. So why are you here -- other than to troll?

    which is why you snipped what I wrote snit.
    Once again you prove your dishonesty.

    Here is the original version.

    Message-ID: <1a20b5nb42is0.bx3c2saqj8qp.dlg@40tude.net>
    "I don't care about tech that YOU pretend to be interested in just so that
    you can start up another one of your mega trolls.
    Take your attention seeking elsewhere."

    Oh, and you think you are clever setting FUP's to alt.test.
    You fail again!


    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Charlie Glock@charlieglock@localhost.com to alt.computer.workshop,comp.os.linux.advocacy,alt.fan.rush-limbaugh on Sat Oct 11 22:23:29 2025
    From Newsgroup: comp.os.linux.advocacy

    On Sat, 11 Oct 2025 17:10:50 -0400, ALB wrote:

    On 11 Oct 2025 20:30:07 GMT, Brock McNuggets wrote:

    On Oct 11, 2025 at 12:47:43rC>PM MST, "ALB" wrote
    <1a20b5nb42is0.bx3c2saqj8qp.dlg@40tude.net>:

    On 11 Oct 2025 18:55:43 GMT, Brock McNuggets wrote:

    On Oct 11, 2025 at 11:47:51rC>AM MST, "ALB" wrote
    <w1cb91ygg8sd.179spbd2f65tx$.dlg@40tude.net>:

    On 11 Oct 2025 18:45:07 GMT, Brock McNuggets wrote:

    On Oct 11, 2025 at 11:15:45rC>AM MST, "Brock McNuggets" wrote
    <68ea9ed1$1$4167$882e4bbb@reader.netnews.com>:

    I have a script that logs when my network goes down.


    ----------------------------------------------------------------------
    set wifiName to "[NETWORK NAME]"
    set wifiPassword to "[NETWORK PASSWORD]"

    set userName to short user name of (system info)
    do shell script ("echo '\\nSTARTING DOWN LOG: " & (current date) >>>>>>> as string) & "\\n" & "' >> /Users/" & userName &
    "/Desktop/down.txt"
    repeat
    try
    set thePing to do shell script "ping -c 1 apple.com ||
    ping -c 1
    bing.com || ping -c 1 google.com"
    delay 5
    on error
    do shell script ("echo '" & (current date) as string) & "' >>>>>>> >> /Users/"
    & userName & "/Desktop/down.txt"
    log "Net Down: " & (current date)
    do shell script "networksetup -getinfo Wi-Fi | grep -q
    Subnet: ||
    networksetup -setairportnetwork en1 " & wifiName & " " &
    wifiPassword
    delay 10
    end try
    end repeat

    ----------------------------------------------------------------------

    Been using it for years, on a system that I rarely use (hence why >>>>>>> logging to the desktop is fine, even if not what I would usually >>>>>>> do).

    But I want it to do better. If the Internet is down I want a line >>>>>>> in the log that says:

    *** Internet Down: Oct 11 2025 10:44 AM to Oct 11 2025 11:56 AM

    Of course with the correct dates / times. Working on it... but
    curious if one of the better coders in here can beat me to it. Or >>>>>>> does someone have a premade solution?

    OK, with help from ChatGPT I got this:

    Nobody gives a flying fuck snit.
    Take your trolling elsewhere.

    YOU do not care about tech, no matter what sock you use. Sure. Thanks
    for the admission.

    I don't care about tech

    I know. And then you blame me. You are responsible for your socking and
    your lack of interest in tech. So why are you here -- other than to
    troll?

    which is why you snipped what I wrote snit.
    Once again you prove your dishonesty.

    Here is the original version.

    Message-ID: <1a20b5nb42is0.bx3c2saqj8qp.dlg@40tude.net>
    "I don't care about tech that YOU pretend to be interested in just so
    that you can start up another one of your mega trolls.
    Take your attention seeking elsewhere."

    Oh, and you think you are clever setting FUP's to alt.test.
    You fail again!

    Heh.
    You've discovered what a dishonest, lying piece of shit snit is.
    He keeps trimming what you write so he can change the meaning and context.
    You really hit a nerve with this one as snit keeps posting the same edited reply and then setting the follow up newsgroup to alt.test.
    Even a noob looking at the thread can see what snit is up to.
    As usual, snit is his own worst enemy. He's the gift that keeps on giving.
    I would offer up the suggestion to not reply directly to a snit post as
    that is what most of us in acw are doing and as you can see it's driving
    snit bat shit crazy.
    Currently snit is attempting to set up his troll factory in cola but
    failing because he is a well known troll there.

    --- Synchronet 3.21a-Linux NewsLink 1.2