Re: redirecting the output of a script to a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 13, 2005 at 05:20:59PM +0100, Paul Howarth wrote:
> If you get output on standard error, you can redirect them separately:
> ./scan > /path/to/file.stdout 2> /path/to/file.stderr
> Or you can write them to the same file:
> ./scan > /path/to/file.both 2>&1

Or with 

  ./scan &> /path/to/file.both 

(a bash-ism, I think).


-- 
Matthew Miller           mattdm@xxxxxxxxxx        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>
Current office temperature: 77 degrees Fahrenheit.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux