On Sun, Nov 1, 2009 at 4:37 PM, Rich Shepard <[email protected]>wrote:

> On Sun, 1 Nov 2009, Joe Pruett wrote:
>
> > tar cvzf /media/disk/psa-home.tgz .
>
>    Next: it's aborting with an error, but doesn't tell me just what the
> error
> is. IIRC I need to pipe the above to 2&1>error.log. Is that the proper
> syntax to redirect stderror to a disk file?
>
> Rich
>
>
Use 2>error.log

2>&1 redirects stderr to stdout.

2>&1>error.log redirects all output (stederr and stdout) to error.log.

-wes
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to