Re: Delaying Autostart

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Delaying Autostart
De : jornws200602 (at) *nospam* xs4all.nl (Oscar)
Groupes : comp.sys.raspberry-pi
Date : 03. Jun 2025, 20:29:27
Autres entêtes
Organisation : A butterfly in Tokio
Message-ID : <101niem$7k6m$1@dont-email.me>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <101n06i$264r$1@dont-email.me>,
Chris Elvidge  <chris@internal.net> wrote:
     while ! timeout 1 curl --noproxy \* "${URL}" &> /dev/null
     do
         echo -n .
         sleep 1
     done
 
The OP could replace the 'sleep 120' in the other script with this loop.
 
>
Why waste a curl call when ping 8.8.8.8 would work with less overhead?

Will 'ping 8.8.8.8' return quickly (within 2 seconds) after my device
has woken up? No. My device does not respond to 8.8.8.8. You are just
testing internet connectivity, not the wakeup of my device.

And why waste a ping call (which is setuid) if a curl call will suffice
AND tells if the port is responding to http(s) requests?

In other words: why waste a post when you don't understand the problem?
--
[J|O|R] <- .signature.gz

Date Sujet#  Auteur
1 Jun 25 * Delaying Autostart13DrStevenStrange
1 Jun 25 +* Re: Delaying Autostart2Theo
1 Jun 25 i`- Re: Delaying Autostart1DrStevenStrange
2 Jun 25 `* Re: Delaying Autostart10Lawrence D'Oliveiro
3 Jun 25  `* Re: Delaying Autostart9Oscar
3 Jun 25   `* Re: Delaying Autostart8Chris Elvidge
3 Jun 25    +* Re: Delaying Autostart3Theo
3 Jun 25    i`* Re: Delaying Autostart2Oscar
3 Jun 25    i `- Re: Delaying Autostart1Oscar
3 Jun 25    +* Re: Delaying Autostart3The Natural Philosopher
3 Jun 25    i`* Re: Delaying Autostart2Oscar
4 Jun 25    i `- Re: Delaying Autostart1The Natural Philosopher
3 Jun 25    `- Re: Delaying Autostart1Oscar

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal