You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
451 B

#!/bin/sh
TOTSESSION=$1
MIN=$((TOTSESSION/60))
while [ $MIN -gt 0 ]; do
clear > /dev/tty9
echo "Sessione in corso..." > /dev/tty9
echo "Minuti rimanenti: $MIN" > /dev/tty9
echo "<html>"
echo " <head>"
echo " <title>Residuo: $MIN minuti</title>"
echo " <meta http-equiv="refresh" content="30">"
echo " </head> "
echo " <body> "
echo "Tempo Residuo di utilizzo: $MIN minuti"
echo " </body> "
echo "</html> "
MIN=$((MIN-1));
sleep 59;
done