Gerben Wierda wrote:
- How do you check that they are the same? (cmp command?) - How does texexec check if another run is needed?
texexec calls texutil which converts a tui file into a tuo file (in the process it sorts indexes and such); when a job is aborted (or has errors) no tuo file is generated (saves an additional later run after a fix); copied from texexec: use File::Compare; sub RunTeXutil { my $StopRunning; my $JobName = shift; unlink "$JobName.tup"; rename "$JobName.tuo", "$JobName.tup"; print " sorting and checking : running texutil\n"; my $TcXSwitch = ''; if ( $TcXPath ne '' ) { $TcXSwitch = "--tcxpath=$TcXPath" } RunPerlScript( $TeXUtil, "--ref --ij --high $TcXPath $JobName" ); if ( -e "$JobName.tuo" ) { CheckPositions($JobName); $StopRunning = !compare( "$JobName.tup", "$JobName.tuo" ); } else { $StopRunning = 1; } # otherwise potential loop if ( !$StopRunning ) { print "\n utility file analysis : another run needed\n"; } return $StopRunning; } maybe some file permissions problem? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------