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.

echo<br />

echo<br />

Capitolo 21. Shell con funzionalità limitate.<br />

echo "Tentativo <strong>di</strong> cambiamento <strong>di</strong> <strong>di</strong>rectory in modalità ristretta."<br />

cd ..<br />

echo "Ti trovi ancora in ‘pwd‘"<br />

echo<br />

echo<br />

echo "\$SHELL = $SHELL"<br />

echo "Tentativo <strong>di</strong> cambiare la shell in modalità ristretta."<br />

SHELL="/bin/ash"<br />

echo<br />

echo "\$SHELL= $SHELL"<br />

echo<br />

echo<br />

echo "Tentativo <strong>di</strong> re<strong>di</strong>rigere l’output in modalità ristretta."<br />

ls -l /usr/bin > bin.file<br />

ls -l bin.file # Cerca <strong>di</strong> elencare il contenuto del file che si<br />

#+ è tentato <strong>di</strong> creare.<br />

echo<br />

exit 0<br />

439

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

Saved successfully!

Ooh no, something went wrong!