INVOCATION_NAME



INVOCATION_NAME

NAME
SYNOPSIS
DESCRIPTION
CONFORMING TO
NOTES
SEE ALSO
COLOPHON

NAME

program_invocation_name, program_invocation_short_name − obtain name used to invoke calling program

SYNOPSIS

#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <errno.h>

extern char *program_invocation_name;
extern char *
program_invocation_short_name;

DESCRIPTION

program_invocation_name contains the name that was used to invoke the calling program. This is the same as the value of argv[0] in main(), with the difference that the scope of program_invocation_name is global.

program_invocation_short_name contains the basename component of name that was used to invoke the calling program. That is, it is the same value as program_invocation_name, with all text up to and including the final slash (/), if any, removed.

These variables are automatically initialized by the glibc run-time startup code.

CONFORMING TO

These variables are GNU extensions, and should not be used in programs intended to be portable.

NOTES

The Linux-specific /proc/[number]/cmdline file provides access to similar information.

SEE ALSO

proc(5)

COLOPHON

This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.




More Linux Commands

manpages/gnutls_x509_crq_get_key_purpose_oid.3.html
gnutls_x509_crq_get_key_purpose_oid(3) - API function.......
gnutls_x509_crq_get_key_purpose_oid.3 - This function will extract the key purpose OIDs of the Certificate specified by the given index. These are stored in the

manpages/mkfontscale.1.html
mkfontscale(1) - create an index of scalable font files for
For each directory argument, mkfontscale reads all of the scalable font files in the directory. For every font file found, an X11 font name (XLFD) is generated,

manpages/setrpcent.3.html
setrpcent(3) - get RPC entry (Library - Linux man page).....
setrpcent.3 - The getrpcent(), getrpcbyname(), and getrpcbynumber() functions each return a pointer to an object with the following structure containing the bro

manpages/cargl.3.html
cargl(3) - calculate the complex argument - Linux man page
A complex number can be described by two real coordinates. One may use rectangular coordinates and gets z = x + I * y where x = creal(z) and y = cimag(z). Or on

manpages/XtInitialize.3.html
XtInitialize(3) - initialize (Library - Linux man page).....
XtInitialize calls XtToolkitInitialize followed by XtOpenDisplay with display_string NULL and application_name NULL, and finally calls XtAppCreateShell with app

manpages/gpg.1.html
gpg(1) - OpenPGP encryption and signing tool (Man Page).....
gpg2 is the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a tool to provide digital encryption and signing services using the OpenPGP standard. gpg2 feat

manpages/pano_modify.1.html
pano_modify(1) - Change output parameters of project file...
pano_modify modifies a single Hugin .pto project. OPTIONS -o, --output=file.pto Output Hugin PTO file. Default: &lt;filename&gt;_mod.pto -p, --projection=NUMBER Sets

manpages/XtVaCreatePopupShell.3.html
XtVaCreatePopupShell(3) - create a popup shell (Man Page)...
The XtCreatePopupShell function ensures that the specified class is a subclass of Shell and, rather than using insert_child to attach the widget to the parents

manpages/gnutls_certificate_set_dh_params.3.html
gnutls_certificate_set_dh_params(3) - API function (ManPage)
This function will set the Diffie-Hellman parameters for a certificate server to use. These parameters will be used in Ephemeral Diffie-Hellman cipher suites. N

manpages/_tracechtype.3ncurses.html
_tracechtype(3ncurses) - curses debugging routines (ManPage)
The trace routines are used for debugging the ncurses libraries, as well as applications which use the ncurses libraries. These functions are normally available

manpages/current_item.3menu.html
current_item(3menu) - set and get current_menu_item.........
The function set_current_item sets the current item (the item on which the menu cursor is positioned). current_item returns a pointer to the current item in the

manpages/gnutls_openpgp_privkey_set_preferred_key_id.3.html
gnutls_openpgp_privkey_set_preferred_key_id.3...............
This allows setting a preferred key id for the given certificate. This key will be used by functions that involve key handling. RETURNS On success, 0 is returne





We can't live, work or learn in freedom unless the software we use is free.