Timeline for Shell Scripting: Proper way to check for internet connectivity?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 5, 2018 at 8:23 | history | edited | John Llewelyn | CC BY-SA 3.0 |
deleted 1 character in body
|
| Jan 5, 2018 at 8:21 | comment | added | John Llewelyn | Ok G-Man, I made some changes, I still need to correct date and improve some things. | |
| Jan 5, 2018 at 8:17 | history | edited | John Llewelyn | CC BY-SA 3.0 |
deleted 104 characters in body
|
| Dec 5, 2017 at 21:32 | comment | added | John Llewelyn | It is in Spanish because it is in my language, but I can correct it in English. The $ HOST is the address to try. $ LINE1 is the Internet connection that is connected by the eth0 adapter. $ LINE2 is the Internet connection that is connected by the eth1 adapter optionally if you have 2 Internet lines, but it is recommended that you leave it disabled. The date, if I verify that it maintains the same time and date since I start the script, I have to correct that problem. This weekend I correct the problem. | |
| Dec 4, 2017 at 4:02 | comment | added | G-Man Says 'Reinstate Monica' | (Cont’d) … (5) Actually displaying the current time when you say you are displaying the current time, rather than capturing the time when the script starts and displaying it throughout the lifetime of the script. (6) I think there was something else, but I don’t see it now. | |
| Dec 4, 2017 at 4:02 | comment | added | G-Man Says 'Reinstate Monica' |
What would make this answer better: (1) Explaining how the script works. (It looks like the user has to edit the script if his network interface is called anything other than eth0, but this is not mentioned.) (2) Using English. (3) Putting all shell variables (e.g., "$HOST", "$LINE1" and "$LOG") into double quotes. (4) Either set LINE2 or don’t use it. (I suspect that you got LINE1 / LINE2 confused with inet4 / inet6.) … (Cont’d)
|
|
| Dec 4, 2017 at 3:19 | review | Late answers | |||
| Dec 4, 2017 at 4:05 | |||||
| Dec 4, 2017 at 3:04 | review | First posts | |||
| Dec 4, 2017 at 4:03 | |||||
| Dec 4, 2017 at 2:59 | history | answered | John Llewelyn | CC BY-SA 3.0 |