@with_device
def pidof(name):
 with context.quiet:
  io = process(['pidof', name])
  data = io.recvall().split()
 return list(map(int, data))

@ with_device def pidof ( name ) : with context . quiet : io = process ( [ 'pidof' , name ] ) data = io . recvall ( ) . split ( ) return list ( map ( int , data ) )
pidof -> int list get pid(s) of target .