Article View: es.comp.os.linux.programacion
Article #438Re: Perl y funcion system()
From: Ignacio Arenaza
Date: Sat, 07 Jun 2008 19:17
Date: Sat, 07 Jun 2008 19:17
36 lines
2264 bytes
2264 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gonzalo P�rez de Olaguer C�rdoba <gpoc@iies.es> writes: >> La verdad que se queda en la apertura del navegador y no muestra el >> print ni pasa por los restantes comandos, a no ser que se cierre el >> navegador. > > As� es como funciona la funci�n system. Teniendo en cuenta que system invoca al shell para lanzar la orden, se puede usar el '&' de toda la vida para lanzar al tarea en segundo plano y retornar inmediatamente al script en perl :-) Eso s�, luego te tendr�s que encargar de matar el proceso de firefox por tu cuenta (con fork & exec al menos tienes un PID para usar kill y wait para hacer la faena). Saludos. I�aki. - -- School of Management Mondragon University 20560 O�ati - Spain +34 943 718009 (ext. 225) GPG Key available at public keyservers -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Processed by Mailcrypt and GPG iD8DBQFISt6rRgC43oKhB3QRAkbvAJ9TD4ns+lTqA8puDZitIJyeQu7y0ACfWMXw Yktnu2c6VH0nhPhioolymRw= =J1/H -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<67tzg5hx71.fsf@poseidon.eteo.mondragon.edu>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!fu-berlin.de!news.eteo.mondragon.edu!eteo.mondragon.edu!not-for-mailReferences:
<1dd9cfea-c047-404d-bddd-97b5f2e5a344@79g2000hsk.googlegroups.com> <20080606173238.581c9ab4@petres.salonet.snet>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,37f302f0f202ae8d X-Google-Attributes: gidf86c8,domainid0,public,usenet X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!fu-berlin.de!news.eteo.mondragon.edu!eteo.mondragon.edu!not-for-mail From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: Perl y funcion system() Date: Sat, 07 Jun 2008 21:17:06 +0200 Organization: Mondragon Unibertsitatea - ETEO Lines: 36 Distribution: es Message-ID: <67tzg5hx71.fsf@poseidon.eteo.mondragon.edu> References: <1dd9cfea-c047-404d-bddd-97b5f2e5a344@79g2000hsk.googlegroups.com> <20080606173238.581c9ab4@petres.salonet.snet> NNTP-Posting-Host: sid.eteo.mondragon.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: poseidon.eteo.mondragon.edu 1212866226 12893 172.31.3.9 (7 Jun 2008 19:17:06 GMT) X-Complaints-To: newsmaster@eteo.mondragon.edu NNTP-Posting-Date: Sat, 7 Jun 2008 19:17:06 +0000 (UTC) User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:SkNr9sn8tTcfT2IfaIJuS7bNad8=