HTTrack Website Copier
Free software offline browser - FORUM
Subject: webhttrack wrongly detects browser closed
Author: Frederik
Date: 02/19/2009 22:09
 
+ log 'spawning regular browser..'
+ echo 'webhttrack(25114): spawning regular browser..'
webhttrack(25114): spawning regular browser..
When I start webhttrack without any Firefox window open, webhttrack
immediately thinks the browser is not running anymore, closes htsserver, and
the result is than when Firefox loads half a second later, an error page
appears stating that it cannot connect to the web server.

If Firefox is already running when starting webhttrack, all works as
expected.

Maybe webhttrack does not give the browser enough time to start?
Here's releavant part of the sh -x webhttrack output:

+ /usr/bin/xdg-open <http://Anastacia:8080/>
++ date +%s
+ end_t=1235077462
+ test -n 1235077461 -a -n 1235077462
+ int_t=1
+ test -n 1 -a 1 -lt 60
+ test -n ''
+ log 'browser exited'
+ echo 'webhttrack(25114): browser exited'
webhttrack(25114): browser exited
+ return 0
+ trap '' 1 2 3 4 5 6 7 8 9 11 13 14 15 16 19 24 25
+ cleanup
+ test -n ''
+ test -f /tmp/.webhttrack.25114.b563a07f54db728fec510d4deb960572
++ grep -E PID= /tmp/.webhttrack.25114.b563a07f54db728fec510d4deb960572
++ cut -f2- -d=
+ SRVPID=25129
+ test -n 25129
+ kill -9 25129
/usr/bin/webhttrack: line 154: 25129 Killed                 
${BINPATH}/htsserver "${DISTPATH}/" path "${HOME}/websites" lang "${LANGN}"
$@
+ echo SRVURL=error
+ test -f /tmp/.webhttrack.25114.b563a07f54db728fec510d4deb960572
+ rm /tmp/.webhttrack.25114.b563a07f54db728fec510d4deb960572
+ test -n ''
+ return 0
+ exit 0
 
Reply


All articles

Subject Author Date
webhttrack wrongly detects browser closed

02/19/2009 22:09




9

Created with FORUM 2.0.11