Message-ID: <4R287I$MnU@newsmth.net>
Subject: ���使���exec
Date: Mon, 06 Nov 2006 03:23:04 +0000
From: ylan@newsmth.net-SPAM.no (yeoyeoman)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.perl.mbox.zip!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed.gamma.ru!Gamma.RU!newsfeed.simtel.ru!Simtel.RU!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.lang.perl
Organization: 水木����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Perl/O/M.1162783074.M0
Xref: news.cnusenet.org cn.bbs.comp.lang.perl:29976

if (my $pid = fork) {
    waitpid($pid, 0);
    print "end exec\n";
    #print wait();                                                                                                
}
else {
    defined($pid) or die "fork: $!";
    print "start exec\n";
    exec "ssh -f $opt_s ping -c 10 $opt_d > pingout";
}
���������������为什么ping��没�薪��� ����叹�直������执�����兀�

������ping ��� ��执�泻���牟����� 应������写�兀�

谢谢����

--

�� ��源:��水木���� newsmth.net��[FROM: 140.180.21.*]