Faced with such a task it is necessary for someone to transfer the output value of their console or some source code or something. How is email, blog? .. In Linux, it turns out, there is a toolkit that is able to maximally facilitate this task and the name of it pastebinit.
Here's what your favorite Debian gives in the description of this package:
$ aptitude show pastebinit
Package: pastebinit
Status: installed
Automatically installed: no
Version: 0.11.2-1
Priority: optional
Section: misc
Accompanying: Rolf Leggewie <foss@rolf.leggewie.biz>
Unpacked size: 352k
Dependencies: python
Description: command-line pastebin client
pastebinit is a "pastebin" command line, which is a pastebinit
Website: http://launchpad.net/pastebinit/
After this package is installed, any console output can be redirected to pastebinit and get a link by which you can see the result.
$ cat sample.c | pastebinit -
http://pastebin.com/f669ae79c
Clicking on this link, we will see all that was displayed in the console.
By the way, if you just want to share the contents of a text file or source, you can simply do this:
$ pastebinit ./sample2.c
http://pastebin.com/f44900e28
It should also be noted that the service can use not only pastebin.com. If you look at man pastebinit, then in the
SUPPORTED PASTEBINS section you can see a list of alternative servers available by default. To use them, specify the server you like using the -b option, like this:
$ pastebinit -b http://yourpaste.net ./tania03.c
http://yourpaste.net/4609
ps : I stumbled upon this service almost by accident. Familiarized. Appreciated. I decided to share my find with the community. You never know, what if someone else is useful :)