Error from bash I've never seen before.
crp at cmc.net
Tue Apr 13 22:15:53 UTC 2010
> On Tue, 13 Apr 2010 21:23:24 +0100, Steve <yorvik.ubunto at googlemail.com>
>> On Tue, 13 Apr 2010 21:15:21 +0100, Ray Parrish <crp at cmc.net> wrote:
>>> I was just trying to run a short script that allows me to Tweet on
>>> Twitter from the command line, and got a strange error I don't know how
>>> to diagnose. Here is the error message -
>>> ray at RaysComputer:~$ Tweet.sh "OPB Radio rocks the state of Oregon!"
>>> bash: !": event not found
>>> ray at RaysComputer:~$
>>> I don't think it's a script error, as I have been using it with no
>>> problems, and the error message seems to be complaining about the
>>> exclamation mark at the end of my command line for some reason that I
>>> have no clue about.
>>> Just in case it's the script causing the error, here is it's code as
>>> well -
>>> curl -u "username":"password" -d status="$*"
>>> http://twitter.com/statuses/update.xml > /dev/null
>>> echo "Tweet, tweet!!!"
>>> Note that I have replaced my username, and password in the script with
>>> those words so as not to endanger my Twitter account with this posting.
>>> Thanks for any help you can be.
>>> Later, Ray Parrish
>> Isn’t ! a bash command
> Use single quotes, eg. Tweet.sh 'OPB Radio rocks the state of Oregon!'
Thank you! Using the single quotes sorted it out.
Later, Ray Parrish
Linux dpkg Software Report script set..
Ray's Links, a variety of links to usefull things, and articles by Ray.
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
More information about the ubuntu-users