2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Return error if no /usr/bin/fping is available

This commit is contained in:
ertaozh 2017-02-22 04:48:40 -05:00
parent aeb96363c1
commit 1e3cf89cf4

View File

@ -162,6 +162,11 @@ sub fping_pping {
}
else
{
if (!-x '/usr/bin/fping')
{
print "fping is not available, please install missing package fping.\n";
exit 1;
}
open(FPING, "fping " . join(' ', @$nodes) . " 2>&1 |") or die("Cannot open fping pipe: $!");
}
while (<FPING>) {