File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Linux / UNIX
less or > doesn't always work
Joined: Nov 06, 2001
Nov 26, 2002 11:47:00
when I try to pipe output from a build file to less or to a file, it doens't always catch everything. Why so?
> tempFile only writes like a couple of lines when the screen stdout sees like 50
Joined: Jan 07, 1999
Nov 26, 2002 11:58:00
There are actually two output streams (corresponding to System.out and System.err in
). The '>' redirection only redirects the basic output stream, not the errors stream..
To redirect the error stream use 2>
Read about me at frankcarver.me
Raspberry Alpha Omega
Frank's Punchbarrel Blog
Joined: Nov 24, 2000
Nov 26, 2002 19:36:00
Hi - One (among several) neat trick is:
some_command 2>&1 | tee logfile.txt
I agree. Here's the link:
subject: less or > doesn't always work
Tracking User's requests.
EJB QL on the exam
Which is the Best practice to follow in Hibernate Mapping file...!
Random number generation
closing browser leaves user logged on
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015