#!/bin/bash #Twitter.sh #Revised making use of Twitter and Twitter's api using a shell prompt #That looks like "twitter> " clear echo "Login to Twitter..." echo echo "Twitter Username?" read -p "twitter> " USER echo echo "Twitter Password?" read -sp "twitter> " PASS echo "Welcome to the Twitter shell." echo "What do you want to do?" CMD="" while [ "$CMD" != "bye" ]; do read -p "twitter> " CMD echo if [ "$CMD" == "show" ]; then echo "not programmed yet" elif [ "$CMD" == "update" ]; then echo "Update your status to...?" read -p "twitter> " STATUS curl -u "$USER":"$PASS" -d status="$STATUS" http://twitter.com/statuses/uptade.xml > /dev/null echo "Status updated" elif [ "$CMD" == "bye" ]; then clear else echo "not an option" fi done
How do i get rid of the report that /dev/null prints out? I don't want the user of the application to see it

New Topic/Question
Reply




MultiQuote




|