| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
curl script to post to pastie.org
From: Scott Haneda <talklists_at_newgeo.com>
Date: Wed, 3 Feb 2010 17:43:10 -0800
I am stumped on this for a few days now.
I want to take the contents of my clipboard, which on Mac OS X I can get to with `pbpaste`, and send it off to pastie.org. I have an elaborate mess of an applescript to make this all happen.
My problem, I have distilled down to a simple shell script:
#!/bin/bash
The curl command is all one line, you can get it cleanly out of here: http://pastie.org/808664
It works a lot of the time. Right now, I have this for curly.txt:
So there is a literal less than symbol in the file, returning to me the value for url_effective as: http://pastie.caboo.se/pastes/create (incorrect)
When it does work, if I were to put the contents of this email into a second file...
I get back this url: http://pastie.org/808674
Suggestions? Thanks in advance.
-- Scott * If you contact me off list replace talklists@ with scott@ * ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-02-04 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info