Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_execve_or_die(3) [debian man page]

explain_execve_or_die(3)				     Library Functions Manual					  explain_execve_or_die(3)

NAME
explain_execve_or_die - execute program and report errors SYNOPSIS
#include <libexplain/execve.h> void explain_execve_or_die(const char *pathname, const char *const *argv, const char *const *envp); DESCRIPTION
The explain_execve_or_die function is used to call the execve(2) system call. On failure an explanation will be printed to stderr, obtained from explain_execve(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_execve_or_die(pathname, argv, envp); pathname The pathname, exactly as to be passed to the execve(2) system call. argv The argv, exactly as to be passed to the execve(2) system call. envp The envp, exactly as to be passed to the execve(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
execve(2) execute program explain_execve(3) explain execve(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_execve_or_die(3)

Check Out this Related Man Page

explain_execvp_or_die(3)				     Library Functions Manual					  explain_execvp_or_die(3)

NAME
explain_execvp_or_die - execute a file and report errors SYNOPSIS
#include <libexplain/execvp.h> void explain_execvp_or_die(const char *pathname, char *const *argv); DESCRIPTION
The explain_execvp_or_die function is used to call the execvp(3) system call. On failure an explanation will be printed to stderr, obtained from explain_execvp(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_execvp_or_die(pathname, argv); pathname The pathname, exactly as to be passed to the execvp(3) system call. argv The argv, exactly as to be passed to the execvp(3) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
execvp(3) execute a file explain_execvp(3) explain execvp(3) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2009 Peter Miller explain_execvp_or_die(3)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

execve to execute a program

I tried using the following code to execute a program but it doesnt seems to be working .. I would like to know whats wrong wit it . execve("/bin/cat", "words", NULL); (0 Replies)
Discussion started by: winsonlee
0 Replies

2. Programming

execve notification in user mode under Linux

Hi, I'm writing a monitor program that can be notified once a process makes an execve system call and then stop that process for examining before it starts to run the new code. I know I can ptrace a process to achieve this, but I do not want to ptrace every process in the system. Is it possible?... (1 Reply)
Discussion started by: aaron.lwe
1 Replies

3. UNIX for Advanced & Expert Users

O argv, argv, wherefore art thou argv?

All of my machines (various open source derivatives on x86 and amd64) store argv above the stack (at a higher memory address). I am curious to learn if any systems store argv below the stack (at a lower memory address). I am particularly interested in proprietary Unices, such as Solaris, HP-UX,... (9 Replies)
Discussion started by: alister
9 Replies

4. Programming

Permission error while using execve..

Hi, I have the following scenario.. 1) I have a binary which i launch from command line. It executes fine. 2) But when I launch it from another file using execve command, it gives a message that it is not able to access a shared object ".so" in /usr/bin (message is "Permission... (4 Replies)
Discussion started by: sathish1000
4 Replies