Re: GETPID after popen command
From: Rich Teer (rich.teer_at_rite-group.com)
Date: 08/01/03
- Next message: Ravin: "Berkeley DB Issue (possible Solaris problem)"
- Previous message: wrocha: "GETPID after popen command"
- In reply to: wrocha: "GETPID after popen command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 01 Aug 2003 02:49:21 GMT
On 31 Jul 2003, wrocha wrote:
> Hi guys.
> I have some shell scripts and I want to execute them via a C program.
Homework question, huh? ;-)
> This C program needs:
> 1- Get itself PID;
> 2- Get PID shell script;
> 3- Get all messages of shell scripts;
> 4- Knows the status of shell scripts;
> I'm trying to use popen but I don't know how to use getpid() with popen.
You can't; use pipe() instead.
-- Rich Teer, SCNA, SCSA President, Rite Online Inc. Voice: +1 (250) 979-1638 URL: http://www.rite-online.net
- Next message: Ravin: "Berkeley DB Issue (possible Solaris problem)"
- Previous message: wrocha: "GETPID after popen command"
- In reply to: wrocha: "GETPID after popen command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|