ss396 on 1 Jul 2004 12:45:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Mappings background pids to their exit status


hello,

>(from bash's builtins(1), not sure if this applies to >ksh)

Right after that, it says -
If pid is not an active process ID, the  wait  utility  will return immediately and the return code will be 0.

Now, if the process crashed before the script reaches wait, it would still return the status 0. Thats the problem. I wish there was some other way to directly match the pid of a process against it's exit status.

Regards,
Suchindra

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug