...on line 13 (che manco esiste)
che il problema stia nell'if l'ho capito, ma l'errore dove diavolo è?
codice:#!/bin/bash echo "Controllo presenza nastro" if [ `/bin/mt status | grep -c ONLINE` ] then echo "nastro identificato" tar cpvf /dev/tape /home/* echo "riavvolgimento ed espulsione" mt rewind mt offline else echo "nastro non trovato" fi