Re: [#!/fr] Capacite disque

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Piel Jayce
Date:  
À: La liste francophone des scripts shell
Sujet: Re: [#!/fr] Capacite disque
Le 7 juin 08 à 08:02, Yves Petronin a écrit :

> dans le test ci dessous, mais mon test ne fonctionne pas et le script
> continue imperturbablement, bien que l' occupation disque retournée
> par la commande ci dessus soit 68
>
> #Checking the capacity of backup disk - If too low, exiting
>
> capacityLimit=50
>
> backupVolumeUsage= `df /Volumes/DISQUE | grep -v Filesystem | awk
> '{print int($5)}'`
>
> echo -n "[*]:Checking Backup disk capacity" | logger
>
> if [ ${backupVolumeUsage} -gt {$capacityLimit}]; then
>     
>     echo "Backup volume has insufficient capacity! - Backup aborted !">>
> $TEMP
>     cat $TEMP>>$rapport
>     echo -n "[*]: BackupVolume insufficient! - Exiting" | logger
>          exit 0
> fi

>
> #end of disk capacity test



Et si tu lances le script avec les options -xv su shell ? Il dit quoi ?

sh -xv tonscript.sh

--
Jayce Piel
MosX.org
la renaissance.....


_______________________________________________
archives :
http://listes.patpro.net/list/sshfr.fr.html
http://listes.patpro.net/mailman/listinfo/script_shell_fr