Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # updated friendika
- read -p "enter your password: " pwrd
- if [[ $(echo $*) ]]; then
- ud="$*"
- else
- read -p "Enter your update text: " ud
- fi
- if [[ $(curl -u tonybaldwin:$pwrd -d status="$ud" http://friendika.openmindspace.org/api/statuses/update.xml | grep error) ]]; then
- echo "Error"
- else
- echo "Success!"
- echo $ud
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement