On Tue, 2007-07-24 at 17:33 +0200, Michael Van Canneyt wrote:
> Try a strace of your program:
> strace -o log.txt ./myprogram
>
> After execution, you can open the log.txt file, and you should see somewhere
> a line:
> open("/tmp/cbtrack.ps",SOME OPTIONS) =
> (grep for the filename) if this line is not present, then the rewrite call
> was not
> executed. If the line is present, then the return value should give you an
> idea of the error.
Aha! Much help there, thanks! Turns out I was using a TProcess to
launch the viewer, and once it's viewed it deletes the temp file.
Problem is, TProcess wasn't waiting for the viewer to close, and it
deleted the temp before gv was even done launching. I was banging my
head against the wall on that one...
Thanks,
Tony