Hi Henry,
Sorry for the slow reply, I was travelling when you last wrote.
The modified graphcap looks right assuming that at the unix level you
can pipe a PS file to the "lp" command and have it appear on the printer
you want (i.e. if you need to say "lp -d tek" instead then those flags
also need to appear in the DD string). It's important to remember that
you need to type "gflush" after modifying a graphcap file to reinitialize
the system, and after doing the snap so the plot is produced.
The DD string is executed in a spawned sub-shell so variables like
PRINTER/LPDEST need to be defined in your .cshrc file and not just .login
to be found. Otherwise it looks like it should work, let me know if you
still have problems.Cheers,
-Mike
On Wed, 23 Nov 2005, Henry Leparskas wrote:> Hi Mike,
> I just tried setting 'stdplot' to this. Then ran implot and did a
> snap with the '=' sign and gave the ':.gflush' command. I get no printout
> nor do I see anything in the local queue.
>
> Here is my graphcap entry.
>
> g-lpr-uwo|UNIX generic interface to default printer device (lpr):\
>
D=lpr,tmp$sgk,!{ sgidispatch sgi2uapl $F -l$(XO) -w$(XW) \
> -b$(YO) -h$(YW) -p$(PW) | lp ; rm $F ; }&:tc=sgi_apl:
>
> In the above I just changed the command that is targetted by the pipe to
> be 'lp' rather than 'lpr'.
>
> My unix LPDEST and PRINTER variables are set to point to a local unix CUPS
> queue that prints directly to the Phaser 8400 printer, queue of 'tek'.
>
> Can you see what I am doing wrong?
>
> Thanks,
> Henry
>
> >
> > Hi Henry,
> > Sorry for the slow reply. We don't have a graphcap specifically
> > for those devices, but the default PS device can still be made to work.
> > You can either configure a working 'lpr' command on the machine and the
> > default device should work, or else simply modify the 'g-lpr' graphcap
> > entry so the DD string uses the 'lp' command rather than 'lpr'. Be sure
> > to type 'gflush' after modifying the graphcap so any changes are picked
> > up and let us know if you still have problems.
> >
> > Cheers,
> > Mike Fitzpatrick
> >
> >
>