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
> 


-- 
Ionut Spirlea, http://sgi.rdscv.ro/~ionuts/
"The number of the beast - vi vi vi" ... World Wide Web

Raspunde prin e-mail lui