Multumesc pentru hinturi. Totusi pare cam complicat pentru ce vreau sa fac.
On Thursday 05 June 2003 14:16, Mihai RUSU wrote: > On Thu, 5 Jun 2003, Serghei Amelian wrote: > > On Thursday 05 June 2003 13:41, Dan Uscatu wrote: > > > ls | program > > > > > > in program.c deschizi pur si simplu stdin ca fisier si citesti din el. > > > > Asta stiu. Dar daca trebuie sa rulez ls-ul din programul meu? > > man popen > > POPEN(3) FreeBSD Library Functions Manual > POPEN(3) > > NAME > popen, pclose - process I/O > > LIBRARY > Standard C Library (libc, -lc) > > SYNOPSIS > #include <stdio.h> > > FILE * > popen(const char *command, const char *type); > > int > pclose(FILE *stream); > > > E ok? > > ---------------------------- > Mihai RUSU > > Disclaimer: Any views or opinions presented within this e-mail are solely > those of the author and do not necessarily represent those of any company, > unless otherwise specifically stated. -- Serghei.
