its actually unix im using... and i can check if the process is running, but i want to action something if it is... i would also like to output and error code of 7 if the stop service command doesn't work, code 0 if it does.
with this code im using its causing it to loop for some reason. |