Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cmdstat(3) — Atari System V ue12

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fork(2)

wait(2)

signal(3)

XtAddWorkProc(3Xt)

RunProcess(3A)

AddChildHandler(3A)



  GETCOMMANDSTATUS(3A)                         GETCOMMANDSTATUS(3A)



  NAME
       GetCommandStatus, GetCommandStatusV - execute a command and
       return its exit status


  SYNOPSIS
       GetCommandStatus (func, arg, cmd, arg ...)
       int (*func)();
       int arg;
       char *cmd;
       char *arg;

       GetCommandStatusV (func, arg, cmd, argv)
       int (*func)();
       int arg;
       char *cmd;
       char **argv;

  DESCRIPTION
       GetCommandStatus executes a command in a child process.
       When the child exits, it calls the function func with the
       argument arg, the process ID of the child process, and its
       exit status.  It uses AddChildHandler to register func . The
       full pathname of the command to execute is in cmd and its
       argument follows in a NULL-terminate list of parameters,
       beginning with argument zero.  GetCommandStatusV does the
       same thing, except it expects the argument list (starting
       with argument zero) in the array of strings argv.

  SEE ALSO
       fork(2), wait(2), signal(3), XtAddWorkProc(3Xt),
       RunProcess(3A), AddChildHandler(3A)










  Page 1                                           (printed 9/3/91)
















Typewritten Software • bear@typewritten.org • Edmonds, WA 98026