Community discussions

 
pkats
just joined
Topic Author
Posts: 3
Joined: Wed Nov 10, 2010 7:54 pm

Need script that will pull information from simple queue

Thu Feb 06, 2014 9:59 pm

I want to get "target-address" with "bytes" for each line in simple queue saved to a file. How do I start.
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Need script that will pull information from simple queue

Thu Feb 06, 2014 11:31 pm

maybe this is a start point for you

ros code

foreach i in=[queue simple find] do={
local ip [queue simple get value-name=target $i]
local byte [queue simple get value-name=bytes $i]
put "$ip has $byte"
}
then you can save to a file.
nothing
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 1736
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Need script that will pull information from simple queue

Sat Jan 06, 2018 9:36 am

maybe this is a start point for you

ros code

foreach i in=[queue simple find] do={
local ip [queue simple get value-name=target $i]
local byte [queue simple get value-name=bytes $i]
put "$ip has $byte"
}
then you can save to a file.
thx you very much

your code help me a lot

Who is online

Users browsing this forum: No registered users and 15 guests