You are not logged in.

#1 2012-11-09 22:28:21

Swashy
Member
Registered: 2012-11-02
Posts: 22

[SOLVED] Can't get curl to work, among everything else

No matter what form I put curl in, I can't see to get it to work. The various manuals I've read through <man> and online have all shown me different examples, but none work.

I've tried <command> | curl -F 'sprunge=<-'http://sprunge.us' and it does... nothing.
I've tried substituting ix urls and pastebin urls but it does nothing.

I feel like a complete moron because everyone expects me to instantly understand what all this gibberish means, and no one else seems to have a problem uploading command text online.

I've had trouble every step of the way installing arch, and its taken me four hours to slug through each problem. Right now I can't start fluxbox for some reason, but I can't get the errors here except for what I write down.
Heres the error for that

Xmodmap: unable to open display ''
Error: Couldn't connect to XServer

I've tried redirecting xmodmap to the keys but it did nothing. I've tried figuring out this xserver thing but my retardation has apparently gotten in the way.


Is this normal? Does everyone feel like an 90 year old when they first jump into arch linux?

Last edited by Swashy (2012-12-05 19:08:13)

Offline

#2 2012-11-09 22:35:25

gsgleason
Member
Registered: 2012-10-08
Posts: 72

Re: [SOLVED] Can't get curl to work, among everything else

First thing I notice is that your command has three single quotes, so it's probably waiting for another quote.

What are you trying to do exactly?

Offline

#3 2012-11-09 22:36:48

Swashy
Member
Registered: 2012-11-02
Posts: 22

Re: [SOLVED] Can't get curl to work, among everything else

Thats what I was given: http://sprunge.us/

I'm trying to pipe command output to a sprunge URL.

Offline

#4 2012-11-09 22:50:03

gsgleason
Member
Registered: 2012-10-08
Posts: 72

Re: [SOLVED] Can't get curl to work, among everything else

this site: http://www.linux-ninjas.com/2012/06/spr … tebin.html

Shows this method:

<command> | curl -F 'sprunge=<-' http://sprunge.us  

Offline

#5 2012-11-09 23:08:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Can't get curl to work, among everything else

gsgleason wrote:

this site: http://www.linux-ninjas.com/2012/06/spr … tebin.html

Shows this method:

<command> | curl -F 'sprunge=<-' http://sprunge.us  

The Arch Wiki says the same :-)
You an also try some other pastebin clients: https://wiki.archlinux.org/index.php/Li … in_Clients

Offline

#6 2012-11-09 23:15:39

Swashy
Member
Registered: 2012-11-02
Posts: 22

Re: [SOLVED] Can't get curl to work, among everything else

Weird, it seems to work under my GUI but not in terminal?? It simply doesn't give me a URL.

I'll try bashing my head against the alternatives Karol, thanks.

edit: got it working guys, it seems I was just consistently mistyping quotes and commas... thanks.

Last edited by Swashy (2012-11-09 23:53:45)

Offline

#7 2012-11-10 03:51:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Can't get curl to work, among everything else

Swashy wrote:

edit: got it working guys, it seems I was just consistently mistyping quotes and commas... thanks.

Glad you got it working :-)
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB