Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: "C" wapros


  • Subject: Re: lug-bg: "C" wapros
  • From: valery@xxxxxxxxxxxxx (Valery Dachev)
  • Date: Wed, 17 May 2000 23:20:12 +0300 (EEST)



On Wed, 17 May 2000, Luben Karavelov wrote:

> On Wed, May 17, 2000 at 10:04:59AM +0300, Valery Dachev wrote:
> > On Tue, 16 May 2000, luben karavelov wrote:
> > 
> > > Georgi Chorbadzhiyski wrote:
> > > > 
> > > > Ako mozhe niakoi po svetnat da pomogne. Imam slednata programa
> > > > ...
> > > script. Na purvia red directivata !/bin/sh e directiva kym shell-a,
> > > akavto niamash, kogato izpulniavash exec().
> > 
> > Na dali towa e prichinata da dade EFAULT ("Bad address").
> >
> 99% siguren sam che tova e prichinata.

Ostawa 1% procent, kydeto move bi ti e greshkata. I az ne znam zashto
trygwa, no wiv sledniq primer:

--------------------------------------------------------------------------

butt:~$ cat execvp.sh
#!/bin/bash
echo "Luben is wrong !"

butt:~$ cat execvp.c
#include <unistd.c>

void main() {
        char	*var[1];

        var[0]=NULL;
        execvp("./execvp.sh", var);
}

butt:~$ make execvp
cc     execvp.c   -o execvp
execvp.c: In function `main':
execvp.c:3: warning: return type of `main' is not `int'

butt:~$ ./execvp
Luben is wrong !

-------------------------------------------------------------------------
I za da ne kavesh oshte neshto, slovih taq programka kato shell na user, i
se lognah (danebi da sme "nasledili" ot nqkyde shell-a) ... pak syshtoto.
Wyprosi ?
                                                                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



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.