14,974
edits
(→BASH) |
m (→BASH) |
||
| Line 66: | Line 66: | ||
== BASH == | == BASH == | ||
=== Approach1: sleep === | === Approach1: sleep === | ||
Tested on {{Linux}} & {{Mac}}<ref>[https://bash.cyberciti.biz/guide/Perform_arithmetic_operations Perform arithmetic operations - Linux Shell Scripting Tutorial - A Beginner's handbook]</ref> | |||
<pre> | <pre> | ||
# print current date & time | # print current date & time | ||
| Line 82: | Line 82: | ||
=== Approach2: ping === | === Approach2: ping === | ||
Tested on {{Linux}} & {{Mac}} | |||
ping local address: {{kbd | key=<nowiki>-c <count></nowiki>}} "Stop after sending (and receiving) count ECHO_RESPONSE packets."<ref>[https://linux.die.net/man/8/ping ping(8) - Linux man page]</ref> | ping local address: {{kbd | key=<nowiki>-c <count></nowiki>}} "Stop after sending (and receiving) count ECHO_RESPONSE packets."<ref>[https://linux.die.net/man/8/ping ping(8) - Linux man page]</ref> | ||