[ubuntu-users] Breezy: X Won't Start
Steve Feehan
sfeehan at sbb.uvm.edu
Thu Jun 30 20:00:35 UTC 2005
On Thu, Jun 30, 2005 at 02:33:22PM -0400, Sean C Sieger wrote:
> I just upgraded to Breezy.
>
> Tried to do it again by doing
>
> sudo sh -c "apt-get upgrade 2>1 1> ~/apt-get.log"
This would send standard error to a file named "1" and standard
output to a file named "~/apt-get.log". What you probably want is:
sudo sh -c "apt-get upgrade > ~/apt-get.log 2>&1"
This will send both standard output and error to "~/apt-get.log".
The "2>&1" means duplicate the standard error file descriptor to
the standard output file descriptor. See the REDIRECTION section
of bash(1).
Though, there may be a problem with redirecting both stdout and stderr
to a file, since apt-get or dpkg won't be able to prompt you. Don't
know... never tried.
You might find script(1) useful.
> will nothing be redirected to the terminal or is
> this just the wrong command?
> --
> Sean
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
Steve Feehan
More information about the ubuntu-users
mailing list