Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

PXFEXECVE

POSIX Subroutine: Executes a new process by passing command-line arguments.

Module

USE IFPOSIX

CALL PXFEXECVE (path,lenpath,argv,lenargv,iargc,env,lenenv,ienvc,ierror)

path

(Input) Character. The path to the new executable process.

lenpath

(Input) INTEGER(4). The length of path string.

argv

(Input) An array of character strings. Contains the command-line arguments to be passed to the new process.

lenargv

(Input) INTEGER(4). An array that contains the lengths for each corresponding character string in argv.

iargc

(Input) INTEGER(4). The number of command-line arguments.

env

(Input) An array of character strings. Contains the environment settings for the new process.

lenenv

(Input) INTEGER(4). An array that contains the lengths for each corresponding character string in env.

ienvc

(Input) INTEGER(4). The number of environment settings in env.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The PXFEXECVE subroutine executes a new executable process (file) by passing command-line arguments specified in the argv array and environment settings specified in the env array.

See Also