
#!/bin/bash inp=$(gnokii --getsms IN 1 end) #     echo $inp>/home/light204/Desktop/inp.txt #     counter_love=$(grep -c  /home/light204/Desktop/inp.txt) #     counter_luba=$(grep -c  /home/light204/Desktop/inp.txt) #     counter_hello=$(grep -c  /home/light204/Desktop/inp.txt) #     counter_good=$(grep -c  /home/light204/Desktop/inp.txt) #     counter_name=$(grep -c  /home/light204/Desktop/inp.txt) #     killall gnokii # gnokii,        #    ,     ,     . if [ "$counter_love" == "1" ]; then echo "  ,    !!! ( )" | gnokii --sendsms '+7904xxxxxx' elif [ "$counter_luba" == "1" ]; then echo ", ,    :)" | gnokii --sendsms '+7904xxxxxx' elif [ "$counter_hello" == "1" ]; then echo "  !   ?" | gnokii --sendsms '+7904xxxxxx' elif [ "$counter_good" == "1" ]; then echo " ,     !  , ,     :(" | gnokii --sendsms '+7904xxxxxx' elif [ "$counter_name" == "1" ]; then echo " Light204_comp .   ,  ;)" | gnokii --sendsms '+7904xxxxxx' fi sleep 3 killall gnokii # gnokii,        gnokii --deletesms IN 1 end #   #.       Source: https://habr.com/ru/post/151698/
All Articles