Prev: additional "/" in the file path is ignored
Next: How to copy non-ASCII file to clipboard (e.g. Image file)
From: foo on 30 Jul 2010 11:32 ... | tee /dev/stderr | tee /path/to/log_file ?
From: Janis Papanagnou on 30 Jul 2010 12:23 On 30/07/10 17:32, foo wrote: > ... | tee /dev/stderr | tee /path/to/log_file ? > > pty
From: Icarus Sparry on 30 Jul 2010 12:54 On Fri, 30 Jul 2010 18:23:33 +0200, Janis Papanagnou wrote: > On 30/07/10 17:32, foo wrote: >> ... | tee /dev/stderr | tee /path/to/log_file ? >> >> >> > pty pty is very very good. A simpler answer in this case might be multitee. .... | multitee 0-1,2,3 3>/path/to/log_file It might even be the case that the OP's 'tee' command would work .... | tee /dev/stderr /path/to/log_file (I am guessing that the OP would be actually running ... | tee /dev/stderr | tee /path/to/log_file | something as otherwise they will be getting two copies of the output of ..., one on stderr and one on stdout)
From: bardy on 31 Jul 2010 11:00
Or simply: cmd 2>/dev/null | tee /dev/stderr > file.log |