Using Fly (again)
[email protected] (Nik Gare) Sun, 31 Oct 1999 19:10:44 +0100
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
Hi again,
Seeing as how this mailing list is a little quite, I thought I bother you all
with a(nother) problem.
(Using Perl and Netplex on an SARPC)
I've downloaded the RISC OS port of fly. Along with vaious bits and bobs in
the zipfile is the application file called 'fly'.
Firstly, where do I put it? - does in go in !Boot.resources, or somewhere in
cgi-bin?
Secondly, do I need to have a line in my script that points to fly? -
something aling the lines of
$flyprog = "/some/where/on/my/hard/drive";
or don't I need something like this in RISC OS?
I have tried the 'test' script which come with fly:
#/usr/bin/perl -w
$flyprog = "/usr/local/bin/fly";
$outfile = "temp.gif";
use fly.pm;
open(FLY,"| $flyprog -o $outfile ");
print FLY "new\n";
print FLY "size 256,256\n";
print FLY "fill 1,1,255,255,255\n";
print FLY "circle 128,128,180,0,0,0\n";
print FLY "fill 128,128,255,255,0\n";
print FLY "arc 128,128,120,120,0,180,0,0,0\n";
print FLY "circle 96,96,10,0,0,0\n";
print FLY "circle 160,96,10,0,0,0\n";
print FLY "fill 96,96,0,0,0\n";
print FLY "fill 160,96,0,0,0\n";
close(FLY);
print $outfile ;
but basically nothing happens, not even any warning messages with -w on.
The perl script runs, but no gif file is produced.
I've even tried just using fly on it's own, ie through a task window and
typing something like: *IDEFS::my.path.to.fly -o outfile.gif (with other bits
in), but the machine just hangs untill I hit the escape button.
Is there anyone out there who has mangaged to get the RISC OS port of fly
working, and if so, how did you manage it.
Thanks for your patience ;-)
Nik