#!/bin/sh #num=431329 #addr="http://sms.paegas.cz/wwwsms/index.phtml" maxlen=310 #316 t=/tmp/smsnf.$$ head -qc 4k >$t hd=`sed -n -e '/^\$/=' -e '/^\$/q' <$t` (echo -n "` head -n $hd $t|sed -n \ -e 's/^Subject: *\(.*[^ ]\) *$/S:\1/p' \ -e 's/^From: *\(.*[^ ]\) *$/F:\1/p' echo B: tail +$hd $t|sed -n \ -e 's/^.*wr\(ote\|ites\):$//' \ -e '/^[^>]/p' `"|tr '\n' ' '|sed 's/\([^ ]\) *\( [^ ]\)/\1\2/g' \ |sed 's/^ *\([^ ].*\)/\1/'|sed 's/\(.*[^ ]\) *$/\1/') \ |head -c $maxlen >$t.2 #(echo -n "num=$num&text=" #urlencode <$t.2 #echo -e "\n---")|lynx -post_data $addr >/dev/null #>>~/Mail/smsn.out (echo -e "From: @.\n";cat $t.2)|/usr/sbin/sendmail jan.kratochvil@sms.paegas.cz rm -f $t $t.2