HTTrack Website Copier
Free software offline browser - FORUM
Subject: Redirecting the messages from hts-log.txt to java
Author: Svetlomir
Date: 12/29/2006 13:30
 
Hello,
I call Httrack using a batch-file, which is referenced from a Java-Programm
using the java.lang.Runtime module:

String[] command = { "cmd.exe",  "/C",  "Start ",
"C:\\WINDOWS\\Kasabov-Tests\\Test2.bat" };
Process child = Runtime.getRuntime().exec(command);

My question is: is there a way to redirect the messages I get in hts-log.txt 
(for Example: 13:13:53	Error: 	"Unable to get server's address" (-5) after 2
retries at link www.sdkgfskjdg.com/ (from primary/primary))  

directly back to the java-program, so that the user can see them?Which file
makes this output and what should I change in there?
(note: the one way would be that the java programm reads directly the
hts-log.txt, which would make a problem when calling the java-programm on a
server with multiple users and common hts-log.txt)

Does anyone can help me?
Svetlomir
 
Reply


All articles

Subject Author Date
Redirecting the messages from hts-log.txt to java

12/29/2006 13:30




e

Created with FORUM 2.0.11