You are not logged in.

#1 2013-10-04 07:53:49

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[solved] pastebinit - Post to pastebin from input process

Hello,

I just discovered pastebinit [1] which takes a file name and returns the pastebin URL once uploaded.

However, I wonder if there is any way to provide a process input such as from makepkg.

I tried the following:

pastebinit < makepkg

But in that case, pastebinit is looking for a file or directory called makepkg. How can I use the output of a process with pastebinit?


[1] https://launchpad.net/pastebinit

Last edited by orschiro (2013-10-05 11:39:21)

Offline

#2 2013-10-04 07:55:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] pastebinit - Post to pastebin from input process


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-10-04 08:10:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] pastebinit - Post to pastebin from input process

Offline

#4 2013-10-05 11:39:09

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] pastebinit - Post to pastebin from input process

Excellent! Piping does work. I added the answer to the wiki page karol suggested. Here is the solution:

makepkg | pastebinit

Offline

#5 2013-10-05 12:51:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] pastebinit - Post to pastebin from input process

It's also possible to first save the output of e.g. 'makepkg' to a file and upload it to pastebin later. Useful if you're not connected to the internet at that moment.

Offline

Board footer

Powered by FluxBB