Re: [CentOS] program calls system() gettind PID - slightly off topic

2007-11-04 Thread William L. Maltby
On Thu, 2007-10-18 at 17:34 -0700, Garrick Staples wrote: > On Thu, Oct 18, 2007 at 08:07:46PM -0400, Jerry Geis alleged: > > I have a C program on centos. When I call system("some_program &"); > > how do I get the PID of the some_program? > > > > I cant just list processes as there might be more

Re: [CentOS] program calls system() gettind PID - slightly off topic

2007-10-18 Thread Garrick Staples
On Thu, Oct 18, 2007 at 08:07:46PM -0400, Jerry Geis alleged: > I have a C program on centos. When I call system("some_program &"); > how do I get the PID of the some_program? > > I cant just list processes as there might be more than one some_program > active. > I need to know the one that I jus