Editing Desktop Command Execution Widget scripts
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 35 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 396: | Line 396: | ||
===Ping a Host=== | ===Ping a Host=== | ||
- | |||
- | + | It takes 10 seconds when down: netcat would be a better choice. Warning: it will block the desktop while running. | |
- | + | ||
- | + | ||
if (echo 'ping -c1 192.168.2.1' | rootsh /bin/sh 2>&1 >/dev/null);then echo up;else echo down;fi | if (echo 'ping -c1 192.168.2.1' | rootsh /bin/sh 2>&1 >/dev/null);then echo up;else echo down;fi |
Learn more about Contributing to the wiki.