octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wait_for_file ?? [time to test ssh]


From: Michael D Godfrey
Subject: Re: wait_for_file ?? [time to test ssh]
Date: Thu, 09 Sep 2010 19:51:37 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Thunderbird/3.1.3

On 09/09/2010 11:41 AM, bpabbott wrote:
Opps, I forgot to include the code to produce the offset.ps file.

Use attached go_fltk.m instead.

Ben,

My second try.  This time I used my new, as of yesterday, Octave with my
debug code.  This shows some things that need fixing.  Here is the output:
octave:2> go_fltk
About to fopen 6
Unknown device:
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
fclose of 6 OK>
gs_cmd = /usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE= -dEPSCrop -sPAPERSIZE=letter -dFIXEDMEDIA offset.ps -
octave:3> ls
6  __ghostscript__.m  go_fltk.m  offset.ps
octave:4> system("ls -l")
total 28
-rw-rw-r-- 1 godfrey godfrey 9531 Sep  9 19:37 6
-rw-rw-r-- 1 godfrey godfrey 5847 Sep  9 19:15 __ghostscript__.m
-rw-rw-r-- 1 godfrey godfrey  716 Sep  9 19:16 go_fltk.m
-rw-rw-r-- 1 godfrey godfrey   99 Sep  9 19:37 offset.ps
ans = 0
octave:5>
====================================================
offset.ps contains:
[qss:pipe_test] more offset.ps
%!PS-Adobe-3.0
<< /Margins [0 0] /.HWMargins [0 0 0 0] /PageOffset [18 180] >> setpagedevice
%%EOF

====================================================
Obvious remarks:
The filename "6" is passed to drawnow().  The file "6" is closed before gs_cmd is
run (congratulations!!).  The gs_cmd does not quite have its parameters initialized
correctly.  But, I would guess that I could manually fix it to produce, at least, close
to the intended PDF (6 contains the correct PS).

I speculate that the unknowndevice error come from the fact that "6" has no suffix.
So, fixing the filename to be tmp.eps should deal with that.

This, I hope, will give you a few things to tidy up.  I will look for more information.
Michael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]