Process ID's in HP-UX

Hi
I know on a SUN-OS system when a process gets executed a folder is created under the /proc directory whilst the process is still active, and then is removed when the process has finished.

What happens on a HP-UX box?

I'm new to HP-UX, so I don't know what happens when a process is executed. Does a folder or file get created that is only there when the process is still active?

Thanks in advance

No, HP-UX does not have a /proc filesystem.

Is there anything similiar?

Are you trying to enumerate processes or check one that you already know - you already have a pid?

Driver's code enumerates processes just fine.

ps -p allows you to enter a pid. It returns 1 if the pid doesn't exist.
Here is a start:

#!/bin/ksh
# argument $1 is the pid to check
ps -p "$1" > /dev/null
echo $?
exit

ps also allows you to search for processes executing specifed commands. See man ps(1)

Thanks for all your replies they are really useful