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.

if [ -f "$OUTFILE" ]<br />

then<br />

chmod 755 $OUTFILE<br />

# Rende eseguibile il file generato.<br />

else<br />

echo "Problema nella creazione del file: \"$OUTFILE\""<br />

fi<br />

# Questo metodo può anche essere usato per generare<br />

#+ programmi C, Perl, Python, Makefiles e simili.<br />

exit 0<br />

È possibile impostare una variabile all’output <strong>di</strong> un here document.<br />

variabile=$(cat

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

Saved successfully!

Ooh no, something went wrong!