anzio Printing overlays
Bob Rasmussen
ras at anzio.com
Thu Feb 26 06:30:53 PST 2009
The question at hand: how to send commands to Anzio from filePro. The
messy problem: backslashes. Here are some notes:
1) Anzio will generally accept forward slashes instead of backslashes for
parts of a pathname. If there are places where this doesn't work, in the
latest Anzio, please let me know.
2) The behavior of "echo" and "printf" will vary based on the OS and the
shell, and possibly dependent on configuration settings. We are now
recommending a different approach to sending commands, which appears to be
universal:
/usr/bin/printf "\034%s\035" 'your command here'
This uses a printf program, not the printf in whatever shell you're using,
and it should be POSIX compliant across platforms. The backslashes before
034 and 035 get processed, but any within 'your command here' do not. Note
that the single quotes are necessary.
3) A key step in diagnosing problems is to break them in pieces. In this
case, you can do this by analyzing what Anzio is actually receiving from
the host. Go to Diagnose:interpret, and look at the bottom of the screen.
Here you'll see the last bytes that Anzio received, with any non-ASCII
text shown in reverse video hex format. So the octal-034 should show as a
(hex) 1C.
4) Between the octal 034 (hex 1C) and the octal 035 (hex 1D) is a command
that should be in Anzio's syntax. You can test the command by doing
Macros:Enter command, and entering the same command there. To avoid typing
mistakes, make use of copy and paste (using the right-mouse popup). What
Anzio should be receiving in this case, between the 0C and 0D, is
overlay c:\eusa\eusahednc.tif?view
(or with forward slashes).
5) Consequently, the command that Unix or Linux should get is:
/usr/bin/printf "\034%s\035" 'overlay c:\eusa\eusahednc.tif?view'
Once again, break the problem into pieces, and try typing this command at
the shell prompt.
6) I don't know filePro's syntax for issuing all of this. Can somebody
help?
Regards,
....Bob Rasmussen, President, Rasmussen Software, Inc.
personal e-mail: ras at anzio.com
company e-mail: rsi at anzio.com
voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
fax: (US) 503-624-0760
web: http://www.anzio.com
street address: Rasmussen Software, Inc.
10240 SW Nimbus, Suite L9
Portland, OR 97223 USA
More information about the Filepro-list
mailing list