Search notes:

Script: p8

p8 is intended to quickly find out if there is a connection to the internet.
The script pings Google's public DNS server which is located on the IP address 8.8.8.8.
It comes in three variants:

p8

#!/bin/sh

ping -c 4 8.8.8.8
Github repository scripts-and-utilities, path: /p8

p8.bat

The Windows batch file variant uses ping.exe
@rem
@rem  convoluted call with exit suppress the idiotic
@rem    Terminate batch job (Y/N)
@rem  confirmation
@rem

@cmd /k ping -t 8.8.8.8 & exit
Github repository scripts-and-utilities, path: /p8.bat

p8.ps1

ping 8.8.8.8
Github repository scripts-and-utilities, path: /p8.ps1

See also

scripts

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759390502, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/tools/scripts/personal/p8(77): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78