(q) motifps
- To: mathgroup at smc.vnet.net
- Subject: [mg14234] (q) motifps
- From: Naohito Sato <Naohito.Sato at irisa.fr>
- Date: Mon, 12 Oct 1998 13:51:21 -0400
- Organization: Irisa, Rennes (FR)
- Sender: owner-wri-mathgroup at wolfram.com
Hello,
Does anybody know how to directly display mathematica ps images
without mathematica?
I remember in the previous version of Mathematica we can invoke
"motifps" directly, though it looks we cannot any more but we
have to launch it through the mathlink connection.
So, I wrote the following small script that launches motifps within the
math frontend. This works well, but unfortunately it turns out
mathematica needs to stay up as long as the image is displayed on
the screen, which is the last thing I want it to do.
Well, is there any solution?
Sato, Naohito
sato at irisa.fr
----------
#!/bin/sh
data=$1; export data
if [ ! -f $data ]; then echo "\"$data\" not found"; exit; fi
math=/usr/local/bin/math
if [ ! -f $math ]; then echo "\"$math\" not found"; exit; fi exec $math
-run '
Module[{motifps,link},
motifps="motifps -mathlink";
link=LinkConnect[LinkOpen[motifps,LinkMode->Launch]];
LinkWrite[link,TextPacket["FileName"]];
LinkWrite[link,TextPacket[Environment["data"]]]]' ----------