net-snmp/testing/check_for_pskill

16 lines
496 B
Plaintext
Raw Normal View History

2022-06-27 15:01:12 +08:00
#!/bin/sh
# Make sure MinGW / MSYS users have the pskill.exe program to stop the agent and
# snmptrapd
if [ "x$OSTYPE" = "xmsys" ]; then
for e in pskill.exe pslist.exe; do
if [ "x`type $e 2>/dev/null`" = "x" ]; then
echo "Could not find $e. Aborting tests."
echo "$e can be installed as follows:"
echo -- "- Download PSTools.zip from http://technet.microsoft.com/en-us/sysinternals/default."
echo -- "- Copy $e to C:\\MinGW\\msys\\1.0\\bin."
exit 1
fi
done
fi