How to properly redirect the output of command executed with sudo.

Posted by petur on Feb 28, 2011 1:44 AM EDT
Petur.eu; By Pétur Ingi Egilsson
Mail this story
Print this story

Alot of people seam to be having problems with proper redirection of 'sudo command' to a file. So many would rather 'sudo -s' than understand why 'sudo command > output' does not work. Wait no more, I shall tackle this problem and explain it to you!

We are faced with a problem when trying to redirect with sudo, as the second part of the command is not executed with root privileges.

More details on http://www.petur.eu/blog/?p=117

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.