Article View: es.comp.os.linux.programacion
Article #13486Re: PREGUNTITA FACIL
From: migue
Date: Tue, 20 Feb 2001 14:11
Date: Tue, 20 Feb 2001 14:11
18 lines
1585 bytes
1585 bytes
Azazel escribi�: > Alguien sabe como hacer un shell propio. > Pero de estos tiraos,es para q quede mas bonito el programa que ejecutes. > Saludos. Hola: A grandes rasgos tendr�as que leer una cadena de car�cteres con el nombre del programa a lanzar del terminar y crear un hijo mediante fork(). La primera instrucci�n del hijo ser� hacer un exec() con el nombre del ejecutable a lanzar. Normalmente el programa padre deber� esperar a que termine la ejecuci�n del hijo con waitpid() (a no ser que se especifique un & al introducir la orden). Espero que te sirva. Un saludo.
Technical Details
Message-ID:
<3A927B2C.15870BFD@eui.upv.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!news.rediris.es!news.uv.es!news.upv.es!not-for-mailReferences:
<96th57$h3o$1@titan.bt.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,a6647173bfa612e3 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2001-02-20 06:28:12 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!news.rediris.es!news.uv.es!news.upv.es!not-for-mail From: migue <migarroi@eui.upv.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: PREGUNTITA FACIL Date: Tue, 20 Feb 2001 15:11:56 +0100 Organization: U.P.V. Lines: 19 Message-ID: <3A927B2C.15870BFD@eui.upv.es> References: <96th57$h3o$1@titan.bt.es> NNTP-Posting-Host: alien3.dsic.upv.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: polaris.cc.upv.es 982678560 25717 158.42.49.115 (20 Feb 2001 14:16:00 GMT) X-Complaints-To: newsmaster@upv.es NNTP-Posting-Date: 20 Feb 2001 14:16:00 GMT X-Mailer: Mozilla 4.76 [es] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en