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.

(a) To view <strong>di</strong>splay output on screen: Do nothing.<br />

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

(b) To save <strong>di</strong>splay output to a file: Re<strong>di</strong>rect stdout to a filename.<br />

(c) To <strong>di</strong>scard <strong>di</strong>splay output: Re<strong>di</strong>rect stdout to /dev/null.<br />

7. Temporary end of decision making.<br />

press RETURN<br />

wait (optionally, watch the dots and colons).<br />

8. Optionally check the return code.<br />

(a) Return code 0: All OK<br />

(b) Return code 1: Script setup failure<br />

(c) Return code 2: Something was blacklisted.<br />

9. Where is my graph (<strong>di</strong>agram)?<br />

The script does not <strong>di</strong>rectly produce a graph (<strong>di</strong>agram).<br />

It only produces a graphic description file. You can<br />

process the graphic descriptor file that was output<br />

with the ’dot’ program.<br />

Until you e<strong>di</strong>t that descriptor file, to describe the<br />

relationships you want shown, all that you will get is<br />

a bunch of labeled name and address nodes.<br />

All of the script’s <strong>di</strong>scovered relationships are within<br />

a comment block in the graphic descriptor file, each<br />

with a descriptive hea<strong>di</strong>ng.<br />

The e<strong>di</strong>ting required to draw a line between a pair of<br />

nodes from the information in the descriptor file may<br />

be done with a text e<strong>di</strong>tor.<br />

Given these lines somewhere in the descriptor file:<br />

# Known domain name nodes<br />

N0000 [label="guardproof.info."] ;<br />

N0002 [label="third.guardproof.info."] ;<br />

# Known address nodes<br />

A0000 [label="61.141.32.197"] ;<br />

709

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

Saved successfully!

Ooh no, something went wrong!