[Gambas-user] Connection to the Internet ...

Christof Thalhofer chrisml at deganius.de
Wed Jun 16 10:55:58 CEST 2021


Am 15.06.21 um 23:20 schrieb Christof Thalhofer:
> Am 15.06.21 um 19:00 schrieb jose.rodriguez at cenpalab.cu:
> 
>>> this will ping the default gateway on linux
>>> ping -c1 `route|grep default|awk '{print $2}'`
>>
>> This might only work in english locales if the output is localized.
> 
> And it is slow as hell.

Sorry, I meant it is a lot faster to use 'route -n':

route -n | grep ^0.0.0.0 | awk '{print $2}'

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur


More information about the User mailing list