[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 2

execerror Command

Purpose

Writes error messages to standard error.

Syntax

execerror

Description

The execerror command is executed by an exec subroutine when the load of the real program is unsuccessful. It is passed the name of the file being executed and zero or more loader error message strings. Each loader error message string contains an error number followed by error data.

Examples

The execerror command is used as follows:

char *buffer[1024];
buffer[0] = "execerror" ;
buffer[1] = "name of program that failed to load";
loadquery(L_GETMESSAGES, &buffer[2], sizeof buffer -8);
execvp("/usr/sbin/execerror",buffer);

This sample code causes the application to terminate after the messages are written to standard error.

Files

/usr/sbin/execerror Contains the execerror command.

Related Information

The exec subroutine, loadquery subroutine.


[ Previous | Next | Contents | Glossary | Home | Search ]