Re: GETPID after popen command

From: Rich Teer (rich.teer_at_rite-group.com)
Date: 08/01/03


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


Relevant Pages

  • Re: Es verhindert =?ISO-8859-1?Q?tats=E4chlich_die_Ausf=FChr?= =?ISO-8859-1?Q?ung?=
    ... bislang auch nichts in dieser Hnsicht bekannt. ... alias DE = Disable Execute ... Huh? ... AMD offenbar selbst nicht so genau. ...
    (de.org.ccc)
  • Re: [opensuse] Executing shell scripts from Konqueror web-browser [SOLVED]
    ... where I've added bash to the top of the list in Application Preference ... All the shell scripts are executable. ... What about adding an 'xterm -e command options'? ... Solved:) The scripts that I want to execute are all of the form ...
    (SuSE)
  • Re: ot Four cops killed in Washington
    ... Huckabee pardoned him - huh? ... I wonder who Mike H did that favor for. ... It costs only $288 for the drugs to execute them by lethal injection, ... death penalty, no wonder our justice system doesn't want to put away ...
    (rec.autos.sport.nascar)
  • Re: Problems Running Scripts Using unix() Command
    ... Matlab 7.2 and some execute while others don't. ... Any reasons why Matlab can't run particular shell scripts? ... requires features of sh that are not supported by bash, ...
    (comp.soft-sys.matlab)
  • Restrict access to custom shell scripts
    ... I have developped several Bourne shell scripts that help some users ... to accomplish general tasks by choosing an option from a list of options. ... It would be desirable that only a few users have the permission to execute ... For the rest of the world, no permissions. ...
    (freebsd-questions)