Juste comme ça, voir si y'en a que ça intéresserait

, mais un boo par type de retour : derniers créés ou derniers actifs. A voir comment le matérialiser...
#!/bin/sh rm cookies.txt wget --save-cookies cookies.txt --post-data "login=flanker&mdp=XXXXXXXXXXX&cookme=checked" http://www.yaronet.com/login.php rm login.php wget --load-cookies cookies.txt http://www.yaronet/com/dposts.php grep "Vous avez un nouveau mini-message" dposts.php growlnotify --appIcon Safari -m 'Vous avez un nouveau minimessage'

if[ `grep -c "Vous avez un novueau mini-message" dposts.php` ] then growlnotify ... fi

#!/bin/sh rm cookies.txt wget --save-cookies cookies.txt --post-data "login=flanker&mdp=XXXXXXXXXXX&cookme=checked" http://www.yaronet.com/login.php rm login.php wget --load-cookies cookies.txt http://www.yaronet/com/dposts.php if [`grep -c "Vous avez un nouveau mini-message" dposts.php` ] then growlnotify --appIcon Safari -m 'Vous avez un nouveau minimessage' fi

num=`grep -c "Vous avez un nouveau mini-message" dposts.php 2> /dev/null` if [ "$num" -gt 0 ] then
)#!/bin/sh cd /Users/flanker/.GrowlyAronet if [ -f cookies.txt ] then touch cookies.txt else /sw/bin/wget --save-cookies cookies.txt --post-data "login=flanker&mdp=XXXXXXXXXXXXX&cookme=checked" http://www.yaronet.com/login.php rm login.php fi /sw/bin/wget --load-cookies cookies.txt http://www.yaronet.com/dposts.php if grep "Vous avez un nouveau mini-message" dposts.php 2> /dev/null then if [ -f mmsg.php ] then touch mmsg.php else /usr/local/bin/growlnotify --appIcon Safari -m 'Vous avez un nouveau minimessage' touch mmsg.php fi else rm mmsg.php fi rm dposts.php
kim :
Evidemment, ça reste que du growl, donc je peux pas mettre de lien cliquable dessus, mais ça peut déjà être sympa à faire.
Flanker :
pourquoi on ne peut pas mettre de lien cliquable dessus ? Avec AdiumX, quand j'ai un nouveau message et que je clique dessus, j'accède directement à la conversation
Flanker :
sinon, je pense que pour mes sujets ça m'intéresserait plusen plus, ça ne doit pas être si difficile de s'authentifier en passant par wget comme je l'ai fait pour les nouveaux minimessages
)
sed -e 's/[.\n]*ls(\([0-9]*\));/\1\ /g' dp.html > dp2.html grep -e '/onclick/' dp2.html > dp3.html sed -ie 's/.*onclick="//g' dp3.html rm dp.html dp2.html
for i in `cat dp3.html` do open http://www.yaronet.com/last.php?s=$i done


sed -ie 's/[.\n]*ls(\([0-9]*\));/\1\ /g' dp.html grep -e 'onclick' dp.html > dp2.html sed -ie 's/.*onclick="//g' dp2.html grep '^" onmouseout' dp.html > dp3.html sed -ie 's/^\" onmouseout=\"[^\>]*\>//g' dp3.html sed -ie 's/<\/a>.*//g' dp3.html count=1 for i in `cat dp2.html` do titre=`tail -rn $count dp3.html | tail -n 1` echo "$i => $titre" count=$(($count + 1)) done rm dp*.html