3

script with mail

view full story
linux-howto

http://www.unix.com – hello , what is wrong in this script ? #!/bin/bash limite=3 while [ "$a=1" -le $limite ]; do if [ "$a" -eq 1 ]; then pru=/usr/bin/mei.txt cat $pru | mail -s "IMEIS" account@domain.com fi if [ "$a" -eq 2 ]; then pru=/usr/bin/mei2.txt cat $pru | mail -s "IMEIS" account@domain.com fi a=`expr $a + 1` done if [ "$a" -eq 2 ]; then a=1 fi thanks (HowTos)