create ri function, poor man's pgrep