Created
June 29, 2011 17:30
-
-
Save rasoliveira/1054371 to your computer and use it in GitHub Desktop.
Script simples para anunciar mudanças no rastreio dos Correios
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RASTREIO="<CODIGO DE RASTREIO AQUI>" | |
ENDERECO="http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=${RASTREIO}" | |
MUSICA="<MUSICA PARA TOCAR AQUI>" | |
wget $ENDERECO -O a | |
while true; do | |
wget $ENDERECO -O b | |
diff a b -q | |
if [ $? -ne 0 ] ; then | |
mplayer "$MUSICA" | |
break | |
fi | |
sleep 10 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment