Now on ScienceBlogs: Open Lab: Time is Ticking!

Seed Media Group

Collective Imagination

Greg Laden's Blog

Evolution, Life Sciences, Science Education, Human Evolution, and Stuff

Recent Comments

Profile


Welcome to Greg Laden's Blog.




Nature Blog Network



Search

Join the best atheist themed blogroll!

Archives

Recent Posts

« Crazy Cuckoos Invade Europe | Main | Blogospherics »

As usual, quotes save the day in bash. And more.

Category: Computer TricksLinuxTechnologyone-liners
Posted on: March 31, 2009 7:30 PM, by Greg Laden

If you try to sudo your way through a command with pipes and/or redirects, part of the sequence of commands may be producing sudo-read/writeable streams of data or data objects, which the other parts of the sequence can't use because they were spawned by your shell and not root.

The solution is to embed the appropriate part of the command in quotes. Like this.

And here is the latest LJ video: The Find Command.

Share this: Stumbleupon Reddit Email + More

TrackBacks

TrackBack URL for this entry: http://scienceblogs.com/mt/pings/104540

Comments

1

I love find -- but then again, I liked APL, too. They have a lot in common.

Posted by: D. C. Sessions | March 31, 2009 8:21 PM

2

I have always wanted to know how to make sudo do that. Great link.

Posted by: Wayne Conrad | April 1, 2009 3:34 PM

3

I find that the easiest way to get around issues with sudo is sudo passwd root. I'm old school like that. :)

Posted by: egaeus | April 4, 2009 12:32 AM

Post a Comment

(Email is required for authentication purposes only. On some blogs, comments are moderated for spam, so your comment may not appear immediately.)





ScienceBlogs

Search ScienceBlogs:

Go to:

Advertisement
Enter to win a free copy of The Monty Hall Problem
Visit the Collective Imagination blog
Advertisement
Collective Imagination

© 2006-2009 Seed Media Group LLC. ScienceBlogs is a registered trademark of Seed Media Group. All rights reserved.

Sites by Seed Media Group: Seed Media Group | ScienceBlogs | SEEDMAGAZINE.COM