Use ps instead of prstat. More portable.