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.

at<br />

batch<br />

cal<br />

sleep<br />

Capitolo 12. Filtri, programmi e coman<strong>di</strong> esterni<br />

Il comando <strong>di</strong> controllo <strong>di</strong> job at esegue una data serie <strong>di</strong> coman<strong>di</strong> ad un’ora determinata. Ad uno<br />

sguardo superficiale, assomiglia a cron. Tuttavia, at viene utilizzato principalmente per eseguire la<br />

serie <strong>di</strong> coman<strong>di</strong> una sola volta.<br />

at 2pm January 15 visualizza un prompt per l’inserimento della serie <strong>di</strong> coman<strong>di</strong> da eseguire<br />

a quella data e ora. I coman<strong>di</strong> dovrebbero essere shell-script compatibili poiché, per questioni<br />

pratiche, l’utente sta <strong>di</strong>gitando una riga alla volta in uno script <strong>di</strong> shell eseguibile. L’input deve<br />

terminare con un Ctl-D.<br />

Con l’uso dell’opzione -f o della re<strong>di</strong>rezione dell’input (

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

Saved successfully!

Ooh no, something went wrong!