Link to home
Start Free TrialLog in
Avatar of trip008vk
trip008vk

asked on

why would the output to the screen be different than output that is captured?

i am using a 3rd party java app, so i dont know the internal workings of it.  i was trying to launch the app from a webservice powered by .NET, but for some reason, it doesnt work (although the app runs fine when launched manually).  one thing i noticed eventually, is that when you try to capture the out put (for instance using "> soemthing.txt" in DOS, the output that is captured is completely different than the output that the java app prints to the screen.  any ideas on how that could be possible?
Avatar of Mick Barry
Mick Barry
Flag of Australia image

is the java app displaying output from stdout?
Avatar of trip008vk
trip008vk

ASKER

i'm not sure.  in know nothing about the internal workings of it.  when i run it from the dos prompt, it prints out several lines to the command window.  when i redirect the output to a text file, it only writes one line (and this line is different form all the others!)
thats very strange, no idea why that would be happening.
ASKER CERTIFIED SOLUTION
Avatar of SamsonChung
SamsonChung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or, the author/designer of the program is smart enough to handle '> something.txt' in command line java.

try sending that to a linux system and see if the results are similar