File: asp_usage

package info (click to toggle)
asp 1.6-3.1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 252 kB
  • ctags: 86
  • sloc: ansic: 986; sh: 193; makefile: 166
file content (32 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

apd(1) can be used from scripts, a few examples: 

$ number="`192.168.1.1-5 | asp -f plato`"
$ echo $?
0
$ echo $number
192.168.1.1   

$ number="`echo 2.2.2.2 | asp -f plato`"
$ echo $?
1
$ echo $number

$ # no match 


And a few comments from the author:

> COMMENTS:
> 
> Try to restrict the range of the addresses to those that the searched
> host could actually have: this saves bandwidth.
> 
> Metaip addresses are allowed only on the last part of the input
> addresses: if the possible ip addresses belongs to different networks,
> use as many metaip addresses as needed; this is because allowing
> metaip addresses as xxx.yyy.*.* or even *.*.*.* would not be a good
> idea...
> 
> Stenio Brunetta