Looks like pv is available for Solaris as here: http://www.ivarch.com/programs/pv.shtml
Regarding ss, it needs to be replaced with netstat/lsof for solaris.
ie.
ss -p state listening "( sport = :$PORT )" | grep -qE 'socat|nc' && break
replaced by
lsof -i :$PORT | grep LISTEN | grep -qE 'socat|nc' && break
Let us know if that works.
Looks like pv is available for Solaris as here: www.ivarch. com/programs/ pv.shtml
http://
Regarding ss, it needs to be replaced with netstat/lsof for solaris.
ie.
ss -p state listening "( sport = :$PORT )" | grep -qE 'socat|nc' && break
replaced by
lsof -i :$PORT | grep LISTEN | grep -qE 'socat|nc' && break
Let us know if that works.