• # \_o<

    Posté par . En réponse au journal AutoIMG, version 0.1. Évalué à 1.

    heu, dans un vieux journal, j ai deja fait mieux, et violement plus rapide:

    $ cat .scrot.sh
    #!/bin/bash
    i=`/bin/date +%Y-%m-%d_%H-%M-%S`
    i=pluton_$i.png
    /usr/bin/scrot /var/www/pluton/scrot/$i
    #/bin/echo -n "http://doublehp.ath.cx/scrot/$i(...)" | /usr/X11R6/bin/xclip
    /bin/echo -n "http://pluton.doublehp.org/scrot/$i(...)" | /usr/X11R6/bin/xclip
    /usr/bin/beep
    /usr/bin/beep

    tu construit un nom de fichier base sur l heure courante. Tu derive un nom de chemin absolu qui mene dans le dossier du server web, et l URL d acces a ce dossier.

    Tu lance scrot sur le chemin, ce qui depose dans le dit dossier un ... SCReenshOT

    puis tu met dans le buffer X l URL associee. Quand tout ca est fini, tu beep un coup.

    Un click sur un bouton d action Gkrellm, 2s d attente, et tu peux coller ton URL sur un bouchot via bouton 3. Si le server HTTP tient plus de 24h, tu peux aussi coller dans un forum.

    Rien ne t empeche de mettre dans le tas un scp ou un ftp-send.

    C est dans un de mes journaux vers octobre 2004.