View Full Version : Script to paste things to paste.ubuntu.com?

June 4th, 2010, 03:57 AM
Would it be possible to make a script to paste things to http://paste.ubuntu.com? I've had to copy and paste the output of my commands into a pastebin so many times when getting help, I just thought it would be nifty to have a script that piped the output of commands to that site. I don't know if bash has the tools needed for this, but it'd be cool if it did.

Can it be done?

June 4th, 2010, 03:57 AM
Don't reinvent the wheel, install pastebinit

June 4th, 2010, 04:01 AM
Haha, I wish I had known...

Thanks, that's exactly what I was looking for.

June 4th, 2010, 04:55 AM
Install gnome-do and enable the pastebin plugin on it.

Then you can select text, Ctrl+Space (Gnome-do invocation), Selected Text, <space>, upload to pastebin.