Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 24th August 2010, 08:54 PM
kurtdriver Online
Registered User
 
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,353
linuxfedorafirefox
extract line from a text file

Hi, I'm pulling my hair out trying to figure this error message out. This little script is supposed to tweet my laptop's IP address, as a cron job, I'm hopeful that it would do so even if it's stolen. This is a variant of one that works, but this doesn't, and I can't see a difference in the curl line of either one.
Code:
#!/bin/bash
user="xxxxxx@xxxxxxxxx"
   pass="xxxxxxxxxxx"
      
wget http://www.whatismyip.org/ 
TWEET=`sed -n 1p index.html`                        
         
             curl --basic --user "$user:$pass" --data-ascii \"status=$TWEET"  "http://twitter.com/statuses/update.json"
             rm -f index.html                                         
exit
This is the error message.

Code:
curl: (6) Could not resolve host: status=66.183.103.67; Cannot allocate memory
{"request":"/statuses/update.json","error":"Client must provide a 'status' parameter with a value."}
Why does curl think the status is the URL?
Reply With Quote
 

Tags
extract, file, line, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract metadata from Ogg with command line joe.pelayo Using Fedora 0 21st March 2010 07:37 AM
"enscript --word-wrap" does not wrap line of text file powah Using Fedora 0 10th May 2006 06:44 PM
extract iso file. thnguyen Using Fedora 1 28th August 2005 04:22 AM
how to extract tr.gz file ? SharkSoftware69 Using Fedora 5 17th September 2004 05:56 PM


Current GMT-time: 04:03 (Friday, 25-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat