Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: perl need to do until on qx{tracert $ip}

by NetWallah (Abbot)
on Sep 14, 2012 at 17:04 UTC ( #993758=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $found = 0;
    for (qx<tracert $ipaddy>){
    ...
      found = 1;
      last;
    }
    
  2. or download this
      if (grep {/myhost/}, qx<tracert $ipaddy>){
          #Do something 
      }else{
          #Addr was not found in trace
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993758]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-03-27 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.