[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bash. Il file remoto esiste?



Ciao, avrei la necessita` di scrivere uno script di bash che faccia questo:

if [ IL FILE http://www.qualchesito.com/file.ext ESISTE? ]; then

wget file_remoto

elif [ IL MIRROR DI QUESTO FILE ESISTE? ]; then

wget file_mirror

fi

Sarebbe anche utile che la funzione restituisse la data di
aggiornamento del file... ho provato con le opzioni di wget ma senza
risultati :-((


--
Openclose.it - Idee per il software libero
http://www.openclose.it



Reply to: