Help with Migration from AIX 4.3 to Solaris 9

From: seanw (seanwoodlock_at_ciscohire.com)
Date: 04/26/05


Date: 26 Apr 2005 11:34:09 -0700

Hi All

I am in desperate need of your expertise. I have recently been
involved in a project to migrate a user from an IBM RS6000 running AIX
4.3 to a new sun server running Solaris 9.

The problem is as follows.

My users are using a program called PRO4 which is an account &
receivable app. It order to use this app the user must be able to
print to file so then through a valid print queue. This basically
allows the user option to keep appending to a file so they can then
print it to a print when they are ready.

IN Aix this was achieve in the following method by using /etc/qconfig
and a small script that take a file as arg and create it in
/user1/fmslive/spool/USER.INVOICE.

Here you can see our /etc/qconfig aix 4.3
 
* null
fl0:
        device = dfl0
dfl0:
        backend = /bin/ksh /usr/lpd/prfl0

 
 
 
Here you can see the shell script prfl0 ref above as backend

FILE=$1
 
{
cat $FILE
} > /user1/fms$PROSYS/spool/$USER.NULL
 
 Where $PROSYS=test
 
This is how the queue appears in aix. f10 queue in question

Queue Dev Status Job Name From To
      Submitted Rnk Pri Blks Cp PP %
 ------- ----- --------- --------- --- --- ----- ---
 ---- --
 lp0 MN@1_ READY
 lp2 lp2 READY
 lp1r dlp1r READY
 lp2r dlp2r READY
 lp3 dlp3 READY
 lp1u dlp1u READY
 lp1l dlp1l READY
 lp2u dlp2u READY
 lp2l dlp2l READY
 fl0 dfl0 READY

In Solaris

I have created the print queue as seen below
bash-2.05# lpstat -p f10 -l
printer f10 is idle. enabled since Tue 26 Apr 2005 16:05:41 BST.
available.
 Form mounted:
 Content types: simple
 Printer types: unknown
 Description:
 Connection: direct
 Interface: /usr/lib/lp/model/standard
 PPD: none
 On fault: write to root once
 After fault: continue
 Users allowed:
  (all)
 Forms allowed:
  (none)
 Banner required
 Character sets:
  (none)
 Default pitch:
 Default page size:
 Default port settings:

However i can't seem to get it to work. I have also tried to create a
print queue that pointed to the shell script lpadmin -pf10 -v
/usr/lpd/prfl0.

But this just wrote the data into the file . I haven't been able to
execute the script and send output from the printer as a file.
Basically I need to be able redirect the output from a valid print
queue and send as a file to the script named above. It has been
suggest to look into the /etc/lp/interfaces/*, Into making some
changes there, but I couldn't see the best place to edit

Sorry to babble on but I wanted to try and give as much info as
possible.

Thanks in advanced for any help offered. I have crossed posted into
the AIX group, to see if anyone there has had a similar problem.

Thanks Again
Sean



Relevant Pages

  • Help with Migration from AIX 4.3 to Solaris 9
    ... involved in a project to migrate a user from an IBM RS6000 running AIX ... print to file so then through a valid print queue. ... Here you can see the shell script prfl0 ref above as backend ...
    (comp.unix.solaris)
  • Unable to print from SAMBA 3.0.2a to AIX 5.2 print queues
    ... I am running SAMBA 3.0.2a on AIX 5.2 ML01. ... If I print from a command line in AIX the a test print queue RJUNK the ... 0782-018 Cannot open digested data base file for printer. ...
    (comp.unix.aix)
  • Specifying script as printer backend
    ... AIX etc it is possible to configure a print queue that runs ... a script when a job is submitted to it, ... interfacing with a printer. ...
    (comp.os.linux.networking)
  • Re: AIX and lpr
    ... > without having to set up a print queue on AIX? ... can invoke rembak from the commandline as the queue does. ...
    (comp.unix.aix)
  • About print file to AIX4.3.3 from remote client. (windows or as400)
    ... The AIX 4.3.3 will be the printer server. ... I create a printer queue with backend program. ... After I created the print queue and device, I test it ok with 'qprt ... But other one is fail, I can't find any error at fail one. ...
    (comp.unix.aix)