Κάτι τέτοιο δηλαδή:
if ping -c 1 192.168.2.1 /dev/null ; then
echo put mount code here
fi
Το /dev/null απλά «τρώει» το output, δηλαδή δε θα γραφτεί τίποτα στο
τερματικό. Εδώ χρησιμοποίησα το απλό ping, γιατί δίνω μόνο μία IP,
μπορείς να χρησιμοποιήσεις το fping για να:
1. δώσεις πολλαπλές
://lists.ubuntu.com/archives/ubuntu-gr/attachments/20101008/182ab4c2/attachment.htm
--
Ubuntu-gr mailing list
Ubuntu-gr@lists.ubuntu.com
If you do not want to receive any more messages from the ubuntu-gr mailing
list, please follow this link and choose unsubscribe:
https://lists.ubuntu.com/mailman
2 matches
Mail list logo