Date: Sat, 16 Jan 2021 17:43:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252709] exit status of ping utility floating error Message-ID: <bug-252709-227-qERNncMpU2@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-252709-227@https.bugs.freebsd.org/bugzilla/> References: <bug-252709-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252709 --- Comment #2 from sgm.sft@gmail.com --- 1. False result in result of execution of "if /sbin/ping -c 3 -W 3 some_hos= t". 2. Scrips were changed to: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D if /sbin/ping -c 1 -W 1 hostaddr > /var/log/periodic/ping/testhostaddr.txt then MSG=3D"test hostaddr OK" else MSG=3D"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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252709-227-qERNncMpU2>