Return to Snippet

Revision: 5256
at February 24, 2008 09:43 by lukaszkorecki


Initial Code
#!/bin/bash
# simpliest blip client zenity edition aka blipsendz
# requires: zenity, curl, sed
# put your blip login details (login:password) in ~/.blipdata file
# TODO: support for char's like: ) / etc...
if [ -a ~/.blipdata ]; then

curl -H'User-Agent: blipsend 0.1' -H'Accept: application/json' -H'X-Blip-api: 0.02' -u $(more ~/.blipdata) -F "update[body]=$(echo $(zenity --entry --text="New status") | sed 's/ /\ /g')" http://api.blip.pl/updates
	zenity --info --text="Your message was sent"
else
	zenity --error --text="Missing login data\n Does ~/.blipdata exist?"
fi

Initial URL

                                

Initial Description
Improved blipsend miniapp
Requires curl, zenity and sed

Initial Title
Improved blipsend

Initial Tags
curl, Bash

Initial Language
Bash