Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Are there any wgetpaste alternatives?

share|improve this question
    
When you ask a question like this, you should explain what wgetpaste is (write a sentence or two, and link to the home page or Wikipedia article or something), and say what you're looking in an alternative (extra feature, easier to use, more portable, …). –  Gilles Jan 15 '11 at 15:37
add comment

2 Answers

up vote 4 down vote accepted

I use an online service called sprunge.us. It lets you post pretty simply like this

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

I have curl -F "sprunge=<-" http://sprunge.us | xclip aliased to webshare on my system, so it becomes simply command | webshare. The added xclip at the end gets the url into the X clipboard; it's not on every system, and there are several other tools out there like it.

share|improve this answer
add comment

I use ix.io with an account set up in .netrc with its command line tool installed; its simple and cool.

Then you can either pipe stuff through it like the above answer:

command which produces output | ix

or directly paste a file:

ix <filename>

this returns the url.

Then I additionally set up a git alias for this so that I can easily paste my format-patches and get an url for it:

~/.gitconfig:
[alias]    
  post = !sh -c 'git format-patch --stdout $1 | ix' -

To paste a patch I do, for example:

git post HEAD~1

or to paste whatever is in your current buffer in vim:

:w ! ix

for uploading files, not too big: http://paste.xinu.at/ with its client.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.