Breezy: X Won't Start

Stephen R Laniel steve at laniels.org
Thu Jun 30 22:03:47 UTC 2005


On Thu, Jun 30, 2005 at 10:20:59PM +0200, Dennis Kaarsemaker wrote:
> apt-get upgrade 2>&1 | tee ~/apt-get.log
> 
> No need to use sh -c
> tee will both echo its input to stdout and to the file. tee -a appends

I believe 'sh -c' is necessary because the above command
will be sudo'd, and the sudo will not work properly with
'>'.

An alternative would be to do 'sudo sh', then run the above
command, then exit out of the root shell. But the above
command is more failsafe.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050630/4f3f0683/attachment.sig>


More information about the ubuntu-users mailing list