Cloverleaf 6.2
Linux 7.x
We're upgrading from 5.7 and have run into a problem with our interface from MUSE with an embedded TIF.
On 5.7 in TCL, we extract the embedded TIF, "decrypt" it (i.e. replace HL7 encoding characters and cr/nl) like so:
set cr [format "%c" 13]
set nl [format "%c" 10]
set DecryptWF [string map {\F\ |} $WaveForm]
set DecryptWF [string map {\S\ ^} $DecryptWF]
set DecryptWF [string map {\T\ &} $DecryptWF]
set DecryptWF [string map {\R\ ~} $DecryptWF]
regsub -all {\X0A\} $DecryptWF $nl DecryptWF
regsub -all {\X0D\} $DecryptWF $cr DecryptWF
set DecryptWF [string map {\E\ \} $DecryptWF]
Then it's written to a file and an exec to the Linux uudecode command is called:
#Write decrpyted message to file
if [catch {open $path/tmp/EKG$ctrval.tmp w} FileID] {
puts "Error writing File $path/tmp/EKG$ctrval.tmp"
}
puts -nonewline $FileID $DecryptWF
close $FileID
catch {exec uudecode -o $path/tmp/EKG_DECRYPTED_$ctrval.tmp $path/tmp/EKG$ctrval.tmp} result
This works fine in the 6.2 TPS tester and from the TCL command line, however, when I run it through the route tester or in the engine I get:
uudecode: /usr/integrator/prod/muse/tmp/EKG0000000047.tmp: No `begin' line
A 0KB file is created.
I've tried using the base64 and uuencode TCL packages, but I'm still unable to create a readable image. I've also tried with and without fconfigure on the file I/O.
The inbound thread is configured with pdl-tcpip protocol. I've used ASCII, binary, and bypass for the encoding, but get the same results with all 3.
Any ideas or suggestions?