11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Optional Graphics Support<br />

’date,’ a standard *nix thing. (date -R)<br />

dot Program to convert graphic description file to a<br />

<strong>di</strong>agram. (dot -V)<br />

A part of the Graph-Viz set of programs.<br />

See: [http://www.research.att.com/sw/tools/graphviz||GraphViz]<br />

’dotty,’ a visual e<strong>di</strong>tor for graphic description files.<br />

Also a part of the Graph-Viz set of programs.<br />

Quick Start<br />

In the same <strong>di</strong>rectory as the is_spammer.bash script;<br />

Do: ./is_spammer.bash<br />

Usage Details<br />

1. Blacklist server choices.<br />

(a) To use default, built-in list: Do nothing.<br />

(b) To use your own list:<br />

i. Create a file with a single Blacklist server<br />

domain name per line.<br />

ii. Provide that filename as the last argument to<br />

the script.<br />

(c) To use a single Blacklist server: Last argument<br />

to the script.<br />

(d) To <strong>di</strong>sable Blacklist lookups:<br />

i. Create an empty file (touch spammer.nul)<br />

Your choice of filename.<br />

ii. Provide the filename of that empty file as the<br />

last argument to the script.<br />

2. Search depth limit.<br />

(a) To use the default value of 2: Do nothing.<br />

(b) To set a <strong>di</strong>fferent limit:<br />

A limit of 0 means: no limit.<br />

Appen<strong>di</strong>ce A. Script aggiuntivi<br />

707

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!