View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

printing with .snap

tonetty wrote on Jul 10, 2010

I've a problem with my HP F4280 all-in-one Deskjet printer...

When I use SPLOT or IMPLOT and then I try to make some hardcopies with :.snap some strange message appears (see snapshot http://dl.dropbox.com/u/4505727/screen ) and nothing is printed even if hplip notify me that a job has been started and completed...

I tied with ::gflush but it didn't help

I found that any job was a 0 (zero) Kbytes files

it seems that SGIDISPATCH is ok and that the printer is ok with any other software installed (I've just upgraded from karmic koala to lucyd linx=

Please, can somebody help me?

Andreas Liudi Mulyo wrote on Jul 10, 2010

try
:. snap eps

i do this step everytime i want to make printing of my spectrum.

Hope this help

Mike Fitzpatrick wrote on Jul 10, 2010

A zero-length file usually means that either the SGIDISPATCH command wasn't run (e.g. the iraf bin directory (normally /usr/local/bin is not is the path defined in .cshrc), crashed for some reason, or there was no gflush to flush the graphics buffer.

My guess is this is probably some error in your graphcap entry for the printer. By default the system will generate Postscript graphics, your printer probably requires the SGI2UHPLJ graphics driver so a generic entry like 'uhplj' (e.g. ":.snap uhplj") might be worth a try. If this doesn't help, could you post the graphcap entry for the printer?

tonetty wrote on Jul 10, 2010

:.snap eps ...does not work

it gives errors and the strange message you can see on the snapshot I insert in the first post

:.snap uhplj gives no error but the printer gives no life signs

I insert here the sections about UNIX default printer in my graphcap file

g-psdump|UNIX generic interface to Postscript file dump:\
:DD=psdump,tmp$sgk,!{ sgidispatch sgi2uapl $F -l$(XO) -w$(XW) \
-b$(YO) -h$(YW) -p$(PW) > /tmp/irafdmp$$.ps ; rm $F; }&:tc=sgi_apl:
# End of Joe Harrington entries.

# IRAFNET Devices
g-lpr|glpr|UNIX generic interface to default printer device (lpr):\
:DD=lpr,tmp$sgk,!{ sgidispatch sgi2uapl $F -l$(XO) -w$(XW) \
-b$(YO) -h$(YW) -p$(PW) | lpr ; rm $F ; }&:tc=sgi_apl:

g-lp|glp|UNIX generic interface to default printer device (lp):\
:DD=lpr,tmp$sgk,!{ sgidispatch sgi2uapl $F -l$(XO) -w$(XW) \
-b$(YO) -h$(YW) -p$(PW) | lp ; rm $F ; }&:tc=sgi_apl:

g-clprl|gclprl|g-clpr|gclpr|Default color printer device (lpr/psikern/land):\
:kf=bin$x_sgikern.e:\
:DD=psi_def,tmp$psk,!{ lpr $F; rm $F ;}&:tc=psi_land:

g-clprp|gclprp|Default color printer device (lpr/psikern/port):\
:kf=bin$x_sgikern.e:\
:DD=psi_def,tmp$psk,!{ lpr $F; rm $F ;}&:tc=psi_port:

g-psport|UNIX generic interface to Postscript file dump (portrait):\
:ar#0.762:ys#0.267:xs#0.203:yr#3180:xr#2380:\
:MF#1:YO#55:YW#3180:XO#90:XW#2380:PW#2.3:RO:YF:\
:DD=psdump,tmp$sgk,!{ sgidispatch sgi2uapl $F -l$(XO) -w$(XW) \
-b$(YO) -h$(YW) -p$(PW) > /tmp/irafdmp$$.ps ; rm $F; }&:tc=sgi_apl:
# End of IRAFNET Devices

is it enough? should I insert the whole file?

thanks for your help

Mike Fitzpatrick wrote on Jul 10, 2010

Is this by any chance a SciSoft installation? I remember at one point the printing didn't work because the sgidispatch command wasn't installed properly. You might try updating your scisoft release, or else run the iraf install script to make the needed links.

Andrew Farrow wrote on Jul 10, 2010

I tend to use ':.snap lpr' to make hard copies.

Last post on Jul 10, 2010