analog to unix pidof command