Script to Post Terminal Output To Pastebin September 12, 2005
Posted by Carthik in applications, snippets, ubuntu.trackback
Dennis has a neat little python script called pastebin which can be used to automatically and easily paste the output from your terminal to a pastebin site.
A pastebin site is a site where users can post just about anything in text for others to look at. This is handy when it comes to requesting support at the #ubuntu support channel, for example. Suppose someone says “paste the output of lspci” you can use Dennis’ script to do the job for you and point the person to the pasted output from the terminal. If you use the neat little pastebin script, then you can redirect the output from the terminal and have it pasted in the pastebin of your choice without having to do the copying and pasting manually. Neat!
Usage:
After you install the script, you can use it to
a) Paste standard output:
For example, to paste the output of lspci, do
$ lspci > pastebin
b) Paste output and error messages:
$command >pastebin 2>&1
where “command” is the name of the command for which you want the output and the error messages to be recorded.
and so on… it can make life a lot easier!
Just wanted to say, kickass site. Keep the Ubuntu tips coming!
You bet!
Hi, my name is Michael and security is very important. In fact, one day I lost all my sites, too. Now, a few months later, I know how to protect myself.
You can have a look at Secure
Regards
Michael
Thanks for sharing this information. Really is pack with new knowledge. Keep them coming.
Just wanted to say, kickass site. Keep the Ubuntu tips coming!
I discovered your blog website on google and check a number of of your early posts. Proceed to maintain up the superb operate. I just extra up your RSS feed to my MSN News Reader. Seeking forward to reading more from you later on!…
Are you clairvoyant? You must be because your blogging so correctly satisfies all the questions I have in mind on this topic. I only put a couple of phrases in the internet search engine and I am very fortunate your blog sprang up.
I couldn’t resist commenting. Well written!
Hi to every one, it’s actually a good for me to go to see this web page, it consists of helpful Information.
Very good blog! Do you have any hints for aspiring writers?
I’m planning to start my own site soon but I’m a little lost on everything.
Would you suggest starting with a free platform like WordPress or go
for a paid option? There are so many options out there that I’m completely overwhelmed ..
Any ideas? Cheers!