Privatebin: How to - I want use privatebin for copy a log file from console to my privatebin

Created on 21 Jun 2020  路  10Comments  路  Source: PrivateBin/PrivateBin

How to - I want use privatebin for copy a log file from console to my privatebin

question

All 10 comments

cpaste: On top of the file it describes the libraries that would need to be installed via pip or other package manager. I does have a help option, so ./cpaste --help should give you some hints on what flags need to be set.

PrivateBin-Groovy: I see that you opened an issue with the upstream project, perfect!

Ok for Cpaste, client work.
https://wiki.visionduweb.fr/index.php?title=Exporter_un_fichier_texte_vers_un_service_en_ligne_de_type_pastebin#Cpaste

I don't know how to pass the options after ordering, I have to use echo and pipe.

python ./cpaste.py --help
Usage: cpaste.py [options]

Options:
  -h, --help            show this help message and exit
  -f FILE, --file=FILE  Read from a file instead of stdin
  -p PASSWORD, --password=PASSWORD
                        Create a password protected paste
  -e EXPIRE, --expire=EXPIRE
                        Expiration time of the paste (default: 1day)
  -s, --sourcecode      Use source code highlighting
  -m, --markdown        Parse paste as markdown
  -b, --burn            Burn paste after reading
  -o, --opendiscussion  Allow discussion for the paste
  -a FILE, --attachment=FILE
                        Specify path to a file to attachment to the paste

Afficher un texte simple :
echo OK | python cpaste.py

Afficher un texte en Markdown :
echo "# Hello World" | python cpaste.py -m

If I understand the above help text correctly, you can pass your log file either with -f to be displayed inline or using -a to send as a downloadable attachment.

But, for a simple text, i can't, i don't know how i can make that.
Then, i use " echo texte | " or cat " text-file | "

I think that is exactly how you should use it. At least it claims to read from stdin by default.

All third-party clients are listed on https://github.com/PrivateBin/PrivateBin/wiki/Third-party-clients. If you find more, feel free to add them there.

So as it seems this question has been answered and I thus close this issue. If anyone has further questions on that topic, feel free to comment here, again.

I followed this link, to discover the 4 privatebin clients.
The last client, Groovy, has poor documentation, it seems to me, I could be wrong, but the implementation was not fast.
I would have liked to have had a return, for Groovy, but, for the moment, I have not had one.

This is why I made a proposal, on my wiki, to use (faster) privatebin clients.

The following examples should be offered in the documentation, if someone wants to take inspiration from it, to translate it into good English, better than my English from Google translator.

The examples are functional, in French.
https://wiki.visionduweb.fr/index.php?title=Exporter_un_fichier_texte_vers_un_service_en_ligne_de_type_pastebin#Clients_Privatebin

Was this page helpful?
0 / 5 - 0 ratings