Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Sat Feb 11 11:33:38 2012 from 38.107.179.230
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Err en anglais

ERR(3) Linux Programmer's Manual ERR(3)
 
NAME


err, verr, errx, verrx, warn, vwarn, warnx, vwarnx - formatted error messages
 
SYNOPSIS


#include void err(int eval, const char *fmt, ...); void errx(int eval, const char *fmt, ...); void warn(const char *fmt, ...); void warnx(const char *fmt, ...); #include void verr(int eval, const char *fmt, va_list args); void verrx(int eval, const char *fmt, va_list args); void vwarn(const char *fmt, va_list args); void vwarnx(const char *fmt, va_list args);
 
DESCRIPTION


The err() and warn() family of functions display a formatted error mes- sage on the standard error output. In all cases, the last component of the program name, a colon character, and a space are output. If the fmt argument is not NULL, the printf(3)-like formatted error message is output. The output is terminated by a newline character. The err(), verr(), warn(), and vwarn() functions append an error mes- sage obtained from strerror(3) based on a code or the global variable errno, preceded by another colon and space unless the fmt argument is NULL. The err(), verr(), warn(), and vwarn() functions use the global vari- able errno to look up the error message. The errx() and warnx() functions do not append an error message. The err(), verr(), errx(), and verrx() functions do not return, but exit with the value of the argument eval.
 
EXAMPLES


Display the current errno information string and exit: if ((p = malloc(size)) == NULL) err(1, NULL); if ((fd = open(file_name, O_RDONLY, 0)) == -1) err(1, "%s", file_name); Display an error message and exit: if (tm.tm_hour < START_TIME) errx(1, "too early, wait until %s", start_time_string); Warn of an error: if ((fd = open(raw_device, O_RDONLY, 0)) == -1) warnx("%s: %s: trying the block device", raw_device, strerror(errno)); if ((fd = open(block_device, O_RDONLY, 0)) == -1) err(1, "%s", block_device);
 
CONFORMING TO


These functions are non-standard BSD extensions.
 
SEE ALSO


error(3), exit(3), perror(3), printf(3), strerror(3)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2007-12-28 ERR(3)


 Dernières recherches
Man  en anglais Man err en anglaisMan  en français Man err en français
Man  en anglais Man ssh en anglaisMan  en français Man ssh en français
Man  en anglais Man ddp en anglaisMan  en français Man ddp en français
Man  en anglais Man log en anglaisMan  en français Man log en français
Man  en anglais Man zic en anglaisMan  en français Man zic en français
Man  en anglais Man scp en anglaisMan  en français Man scp en français
Man  en anglais Man du en anglaisMan  en français Man du en français
Man  en anglais Man rm en anglaisMan  en français Man rm en français
Man  en anglais Man df en anglaisMan  en français Man df en français
Man  en anglais Man id en anglaisMan  en français Man id en français
Man  en anglais Man fs en anglaisMan  en français Man fs en français
Man  en anglais Man memccpy en anglaisMan  en français Man memccpy en français
Man  en anglais Man cp en anglaisMan  en français Man cp en français
Man  en anglais Man ln en anglaisMan  en français Man ln en français
Man  en anglais Man su en anglaisMan  en français Man su en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher