[libhid-discuss] RE: How to use multiple interfaces?

Charles Lepple clepple at ghz.cc
Tue Mar 13 23:39:46 CET 2007


Velu, Muthu wrote:
> I captured the output to a file as my program runs as part of  a
> different shell script.  I will retry by piping the output from the
> program itself.

I usually do something like this:

 $ ./name-of-program 2>&1 | tee logfile.txt

The "2>&1" redirects standard error to the same place as standard output,
and "tee" will copy standard input to both standard output and the
logfile.

-- 
Charles Lepple





More information about the libhid-discuss mailing list