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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Purtroppo, questi strumenti non possono essere usati negli script <strong>di</strong> <strong>Bash</strong>.<br />

#!/bin/bash<br />

# history.sh<br />

# Tentativo <strong>di</strong> usare il comando ’history’ in uno script.<br />

history<br />

Appen<strong>di</strong>ce J. Cronologia dei coman<strong>di</strong><br />

# Lo script non produce alcun output.<br />

# Inseriti negli script, i coman<strong>di</strong> <strong>di</strong> cronologia non funzionano.<br />

bash$ ./history.sh<br />

(nessun output)<br />

Sul sito Advancing in the <strong>Bash</strong> Shell (http://www.deadman.org/bash.html) è presente un’ottima<br />

introduzione all’uso dei coman<strong>di</strong> <strong>di</strong> cronologia in <strong>Bash</strong>.<br />

792

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

Saved successfully!

Ooh no, something went wrong!