fsanchez13
Technical User
New to scripting and I can't seem to make this script work any help would be great
ps -ef | grep "telnet 10.0.32.36 1011" | nawk '{print $2}' > pidchk
ids=`cat pidchk`
if ($ids < 0)
then
echo restart
else
echo good
fi
I keep getting this error from the script. the name of the script is keepalive
keepalive[4]: 0: cannot open
ps -ef | grep "telnet 10.0.32.36 1011" | nawk '{print $2}' > pidchk
ids=`cat pidchk`
if ($ids < 0)
then
echo restart
else
echo good
fi
I keep getting this error from the script. the name of the script is keepalive
keepalive[4]: 0: cannot open