if [ $PROCESSOR = 1 ]; then
echo -e "Tu procesador es de ${green}$PROCESSOR ${normal}núcleo.\n"
else
echo -e "Tu procesador es de ${green}$PROCESSOR ${normal}núcleos.\n"
fi
let $MEMSWAPTOTAL
let $MEMSWAPFREE
MBMEMSWAPTOTAL=$(($MEMSWAPTOTAL/$m))
MBMEMSWAPUSED=$((($MEMSWAPTOTAL - $MEMSWAPFREE)/$m))
MBMEMSWAPFREE=$(($MEMSWAPFREE/$m))
echo "Tienes $MBMEMSWAPTOTAL ${normal}Mb de memoria Swap."
echo "Al ejecutar este script estas usando ${green}$MBMEMSWAPUSED ${normal}Mb de memoria Swap."
echo "Tienes ${green}$MBMEMSWAPFREE ${normal}Mb de memoria Swap libres."
--------
Por favor hagan sus pruebas, he invertido el varlor de una variable, quisiera saber si es adecuado el consumo de la ram, saludos
Para cargar el script coloquenlo en el directorio /usr/bin
luego hay que darles permiso de ejecución -> chmod 755 misistema.sh
finalmente usarlo -> # misistema.sh
y obtendrías la información base.
Saludos Last edited by m0li on Sun 23 Sep 2012, 12:22; edited 5 times in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum