Indeed, it helps a lot. If I might ask, where is the $cmd variable actually executed ?
I have putted it in the pingone subroutine but as I analyse the code, it seems like the parsing is actually done only on the $cmd variable string. Regards, Luc -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Niko Tyni Envoyé : 5 janvier 2007 14:49 À : [email protected] Objet : [smokeping-users] Re: Owamp Probe creation question On Fri, Jan 05, 2007 at 02:36:04PM -0500, Luc Moreault wrote: > First of all, thanks for the hint Niko, I worked around the skel.pm module > and i'm almost done with it. > I only need to parse my output in the array. I understand the skel.pm code > almost in all its integrity but one line (which gives me a compile time > error). > > open(P, $cmd 2>&1 |") or croak("fork:$!); #What is the $cmd variable ? That's the actual command line that's going to be executed, supposedly glued together from the probe and target variables. Something like (as a made-up example) my $cmd = "$binary -w $weight -c $count $target->{addr}"; The skel.pm module is indeed missing this; I'll add it for the next release. Hope this helps, -- Niko -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/smokeping-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/smokeping-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
