Article View: pl.comp.lang.perl
Article #52007Re: Równoległe uruchamianie dwóch procesów
From: Szymon Sokół
Date: Tue, 02 Nov 2010 16:54
Date: Tue, 02 Nov 2010 16:54
22 lines
2162 bytes
2162 bytes
On Mon, 01 Nov 2010 20:31:40 +0100, Pawel wrote: > On 2010-11-01 20:22, Waldek M. wrote: >>> Zerknalem takze do opisu forka, ale z tego co zrozumialem, to fork >>> robi kopie procesu glownego, a nie uruchamia osobnego skryptu. >> >> Owszem, dlatego stosuje się najczęściej fork+exec. > A moglbys dac jakis przyklad kodu, bo nie bardzo wiem jak sie do tego > zabrac. Przykładów są tysiące (wystarczy w Google wpisać "perl fork exec example"...), np. tu: http://www.wellho.net/resources/ex.php4?item=p223/f1.pl albo i w FAQ tej grupy: http://www.kt.agh.edu.pl/perl-faq/Uruchamianie#20 ale pewnie prościej będzie to wystrugać za pomocą modułu IPC::Run. -- Szymon Sokół (SS316-RIPE) -- Network Manager B Computer Center, AGH - University of Science and Technology, Cracow, Poland O http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F Free speech includes the right not to listen, if not interested -- Heinlein H
Technical Details
Message-ID:
<1bj979bu5bw0s$.dlg@falcon.sloth.hell.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mailReferences:
<ian314$2bc$1@inews.gazeta.pl> <116s06x665nir$.dlg@localhost.localdomain> <ian4j3$7u1$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mail
From: Szymon Sokół
<szymon@bastard.operator.from.hell.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: Równoległe uruchamianie
dwóch procesów
Date: Tue, 2 Nov 2010 17:54:52 +0100
Organization: Guy Fawkes Society
Lines: 22
Sender: szymon@news.agh.edu.pl
Message-ID: <1bj979bu5bw0s$.dlg@falcon.sloth.hell.pl>
References: <ian314$2bc$1@inews.gazeta.pl> <116s06x665nir$.dlg@localhost.localdomain> <ian4j3$7u1$1@inews.gazeta.pl>
NNTP-Posting-Host: chello089078159131.chello.pl
Mime-Version: 1.0
X-Trace: news.agh.edu.pl 1288717196 7817 89.78.159.131 (2 Nov 2010 16:59:56 GMT)
X-Complaints-To: abuse@agh.edu.pl
NNTP-Posting-Date: Tue, 2 Nov 2010 16:59:56 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.1 Hamster/2.1.0.11
X-Face: xic?6f"rD)k-tM.]L]A6l4W7_aGt({}&{D,hiRI.8cPtf,1F.w@Qkl!vr23o1UY-BfXO$p< hk5>ijB?eBy)?!C<@)+%U\&`1X)MJ>.i.qgkY]4mvL62j<|xJRG/5:7:l8q]x;v!)Bz^r/!yG8DxoD -@fnC,g]BAXj
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit