Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. zz6yff

    Script that echo 0 if a process(parameter) is not running.

    This works on Sun/ksh. It returns 0/1 rather than echo but is easy enough to change... #! /usr/bin/ksh SEARCH=`ps -ef | grep -v "ps -ef" | grep -v "${0} ${1}` >> /dev/null while [ $# -gt 0 ] do echo ${SEARCH} | grep "${1}" >> /dev/null if [ $? -ne 0 ] then...

Part and Inventory Search

Back
Top