SUMMARY: printing from dtmail

From: Frode Stromsvag (frode@sol)
Date: Wed Apr 08 1998 - 05:07:51 CDT


Hi.

My original question:

I know this has been asked before, but I never found any summary for
it.

I upgraded 4 workstations from Solaris 2.5 to Solaris 2.6 by doing a
complete reinstallation of the OS. After
this upgrade printing from dtmail doesn't work correctly anymore.
It seems that Carriage Return is missing when printing to our
Postscript printers. I'm sure a simple fix can make this thing
work. Please advise.

I never changed anything in the user environment like .mailrc or
similar things.

-------------------------------------------------------------------

I only got 1 answer from bismark@alta.Jpl.Nasa.Gov:

Solaris 2.6 now as a file /etc/printers.conf (or something
like that) where you specify the type of printing
you want to do. You usually can do a simple printing or
postscript printing with carriage-return & line feed at the end.

Thanks a lot to you, Bismark Espinoza.
------------------------------------------------------------------

This was not the answer I was looking for since all printing
otherwise (command line printing for postscript files and ascii)
always work fine.

What I ended up doing was to change the CDE actions for printing.
We have a link /etc/dt pointing to a filesystem accessible from
every workstation at our site, where global resources for CDE might
be configured. I copied these files to this area:
        /usr/dt/appconfig/types/C/dtmail.dt
        /usr/dt/appconfig/types/C/print.dt
I edited the files to have the Print action have the EXEC_STRING
        lp "%(File)Arg_1%"
instead of the default
        /usr/dt/bin/dtlp #%(File)Arg_1%"
        
I couldn't get 'dtlp' work properly even from the command line.
Anyone else know something about this???????

I also edited the actions for the files
        /etc/dt/appconfig/types/C/<printer>.dt
giving the EXEC_STRING a value similar to
        lp -d <printer> "%(File)Arg_1%"
where <printer> is the name of the given printer.

By doing these changes I could also make drag&drop printing work
(make sure LPDEST environment variable is set to make drag&drop
printing work on you default printer).

(NB! My reply-to header is bad, so please type the correct address
given below..........)

Frode Stromsvag email: frode@read-well.no
READ Well Services a.s.
Ravnsborgveien 56
P.O. Box 193
1360 Nesbru Phone number: +47-66982240
NORWAY FAX number: +47-66982022



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:36 CDT