fluffy@snurgle.org (William T Wilson) wrote:
>On Mon, 28 Feb 2000, Jonathan Lupa wrote:
>> Is there a built in command, or shell command to retrieve the process
>> name from a pid?
>
>ps ax | awk '$1 == <pid> {print $5}'
Or indeed 'ps -o%c h -p <pid>'. This will probably break on other
Unices (and older versions of ps, for that matter), but this is
debian-user, right? :)
--
Colin Watson [cjw44@cam.ac.uk]