dear alexey,

Strange, both commands behave as expected on my machine with aolserver 4.5.1. Can it be that your machine is running out of memory? Can it be that you have
mixed tcl versions during compilation?

btw, you should use nsproxy instead of exec to call soffice.

best regards
-gustaf neumann

Alexey Pechnikov schrieb:
Hello!

AOL version 4.5 may be killed my simple code:

catch {exec soffice -invisible -headless -norestore "macro:///Standard.Converter.ConvertToPDF($tmpdocname)" -display :10}

I rewrite command as
exec soffice -invisible -headless -norestore "macro:///Standard.Converter.ConvertToPDF($tmpdocname)" -display :10 > /dev/null

It's work but is not stable.

And this code work wrong:

if {[file exists $tmpresname]==1} {
        ns_returnfile 200 [ns_guesstype $tmpresname] $tmpresname
} else {
        puts "File $tmpresname not exists"
}

We can see message in AOL log:

File /tmp/fileiBmXN0/doc.pdf not exists

But
$ ls -lh /tmp/fileiBmXN0/doc.pdf
-rw-r--r-- 1 www-data www-data 81K 2009-03-02 00:38 /tmp/fileiBmXN0/doc.pdf

Is AOL 4.5 development and unstable release? I did think AOL 4.5 is production but AOL 4.0.10 work fine and AOL 4.5 generate a lot of different errors.

Best regards.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to