Hello monks! I am trying to write a perl script that in this case just checks to see if nscd is running and does nothing if it is and when it dies to do something else..pretty simple right? Well not for me for some reason? Can some one tell me what is going wrong? Here is my script:
while ($RUNDBCOLD == (`ps -ef | grep -v grep | grep "nscd" | awk -F/ '{print \$4}'`))