Re: lug-bg: "C" wapros
- Subject: Re: lug-bg: "C" wapros
- From: valery@xxxxxxxxxxxxx (Valery Dachev)
- Date: Tue, 16 May 2000 22:40:49 +0300 (EEST)
On Tue, 16 May 2000, Georgi Chorbadzhiyski wrote:
> ...
> int run_program(prog, args, must_exist, done, arg)
> ...
> execvp(prog, args);
> if (must_exist || errno != ENOENT) {
> /* have to reopen the log, there's nowhere else
> for the message to go. */
> log(L_ERR, "Can't execute: %s error: %u", prog, errno);
> }
> ...
> run_program("/usr/local/my_script", exec_buf, 0, NULL, NULL);
> ...
> can't execute: /usr/local/my_script error: 14
wiv w /usr/include/asm/errno.h -> EFAULT /* Bad address */
> can't execute: /usr/local/my_script error: 13
/usr/include/asm/errno.h -> EACCES /* Permission denied */
> Kakvo oznachavat tezi i greshki i kakvo sam obyrkal ??
Symnqwa me posledniq parametyr ... ne bi trqbwalo da e NULL ... probwaj
kato podadesh dwe kawichki samo ("").
Valery
.........................................................................
: User ID : Valery Dachev <v.dachev@xxxxxxxx> :
: Homepage : http://web.dir.bg/valery/ :
: PGP Key ID : 1024D/1C4C9712 (DSA) :
: Fingerprint : C451 0CC8 8EB4 655C D7C8 9D7F DCE9 C14E 1C4C 9712 :
:..............:........................................................:
: Organization : Bulgarian Linux Society : WWW : http://linux.home.bg/ :
:..............:.........................:.....:........................:
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|