[Bug 252709] exit status of ping utility floating error
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jan 16 17:43:18 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252709
--- Comment #2 from sgm.sft at gmail.com ---
1. False result in result of execution of "if /sbin/ping -c 3 -W 3 some_host".
2. Scrips were changed to:
=======================================
if /sbin/ping -c 1 -W 1 hostaddr > /var/log/periodic/ping/testhostaddr.txt
then
MSG="test hostaddr OK"
else
MSG="test hostaddr failed"
echo `date` >> /var/log/periodic/ping/testhostaddr.err
cat /var/log/periodic/ping/testhostaddr.txt >>
/var/log/periodic/ping/testhostaddr.err
fi
=======================================
where "hostaddr" is variable for different scripts for different hosts.
Results:
- last night script worked for only one host. No one error appered.
- after adding into crontab 6 script for different hosts, errors took place
nearly 3 times an hour.
Files "testhostaddr.err" contains no errors, only time of errors appeared.
It looks like /sbin/ping did not start if more than one scripts started
simultaneously.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list