Acum imi dau seama.."replacing the shell" cuvinte cheie. Cand se termina 
programu, bash nu mai exista de fapt.

On Tue, 22 Jul 2003, Dan Nae wrote:

> Daca ii dai chestia aia fara sa o pui intre () sa se execute in subshell 
> pe mine ma scuipa linuxu (imi moare bashu). Intre paranteze merge. Nu imi 
> dau seama de ce...
> 
>  On Tue, 22 Jul 2003, Ionut Spirlea wrote:
> 
> > 
> > salu,
> > 
> > cica (din bash):
> > [EMAIL PROTECTED]:~# help exec
> > exec: exec [-cl] [-a name] file [redirection ...]
> >     Exec FILE, replacing this shell with the specified program.
> >     If FILE is not specified, the redirections take effect in this
> >     shell.  If the first argument is `-l', then place a dash in the
> >     zeroth arg passed to FILE, as login does.  If the `-c' option
> >     is supplied, FILE is executed with a null environment.  The `-a'
> >     option means to make set argv[0] of the executed process to NAME.
> >     If the file cannot be executed and the shell is not interactive,
> >     then the shell exits, unless the shell option `execfail' is set.
> > [EMAIL PROTECTED]:~# 
> > 
> > asa ca
> > exec -a gigelu mc
> > 
> > sau scrii vreo 20 de caractere de C :)
> > 
> > 
> > On Tue, 22 Jul 2003 15:21:00 +0300
> > Claudiu Cismaru <[EMAIL PROTECTED]> wrote:
> > 
> > > 
> > > Salut,
> > > 
> > > Am avut nevoie azi de un programel care executa un alt program/comanda
> > > cu argv [0] modificat. Pe net nu am gasit (decat in tcpserver, dar nu 
> > > am chef sa compilez tot tcpserver pentru argv0 ca nu e de sine
> > > statator ca source).
> > > 
> > > Asa ca am facut eu unul. Daca are nevoie cineva de asa ceva, il gasiti
> > > la ftp://maya.cnixs.com/pub/
> > > 
> > > -- 
> > >   Claudiu Cismaru
> > >   GPG Key: http://maya.cnixs.com/~claudiu/claudiu.gpg
> > > 
> > 
> > 
> > 
> 
> 

-- 
-------------------------
Dan Nae
Romanian Education Network
Bucharest NOC


Raspunde prin e-mail lui