Monday, May 11, 2009

How to pastebin from terminal

What is wgetpaste?
Wgetpaste is a command-line interface for various pastebins. With it you can paste the contents of a file, the output of a task, or anything you want to a pastebin service, with just executing a simple command from terminal.

How to install wgetpaste?
#emerge -av wgetpaste

How to pastebin from terminal?

$wgetpaste filename
(where "filename" is the name of the file which contents you wanna paste)
And in a couple of seconds you'll be given a link to where you can view your text.

How to pastebin the output of a command?

$ls | wgetpaste
Which pipes the output of the "ls" command to the wgetpaste command, and pastebins it appropriately, returning you a link for it. Equivalent for any other command.

0 comments:

Post a Comment

 

GentooNova © 2008 Business Ads Ready is Designed by Ipiet Supported by Tadpole's Notez