I made a code in Perl that (please don't laugh) takes a ping log out from a file, and analyze it, counting lost pings, ping time, etc, and make a little ASCII Graphic, and all.

It's not a very useful software, if I tell you that I use windows, and that is thousands of free applications for things like that on websites, but doesn't matter, I made it for educational reasons, to learn a little more.

My problem in this moment is to LOG the pings.

How I do it? I execute a separated command line ping -t perlmonks.org >ping.log, and then in my little code, I analyze this file ping.log.

As far as I remember in my lazy attempts to read the Camel Book, there are two ways to execute and external command in Perl: system, and exec.

exec, execute, and dies.

system, executes, waits until the procedure is finished and then continues the program.

In this case, NONE works. I'd need to have something that could execute something and forget about it, is there something in Perl to do that?


-------
[]'s
FiReWaLL
The mand with the red hat.


In reply to Executing independent commands in PERL by FiReWaLL

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.