#!/bin/sh
echo "one"
read host
echo "two"
read ip
echo "three"
read oid
read oid
echo $oid $host >> logger.txt
it never makes it to echoing "two"
No matter if I pass parameters (this is to receive SNMP traps, and the parameters come) manually in any varied way.
EDIT: This has permissions etc etc, I am testing it by launching it manually, "one" is echoed.
readreads from standard input, and it blocks until it receives that input; so by "ends", do you mean "hangs"?yourscript.sh HOST_NAME IP OID OID