Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lpr on SVR4

3 views
Skip to first unread message

0

unread,
Dec 12, 2006, 11:41:17 PM12/12/06
to
Hi all. I've recently had to restore a Sys V rel 4 box and it doesn't
seem to have lpr. I need that to print? I can 'cat' stuff to the
printer, but I'm trying to get an old COBOL program to print (CMI in
case it matters) and it's scripts seem to want /usr/bin/lpr. Is there
somewhere that I can find this lpr program? Total stranger to SCO so
any help would be appreciated.

Brian K. White

unread,
Dec 13, 2006, 1:32:35 AM12/13/06
to

Try lp not lpr

if that doesn't work then please show:
uname -X
customquery listfiles |grep /lp


Also, if the uname above indicates OpenServer, then have you run
"scoadmin printer" to set up at least one printer in the spooler? lp
won't do much without it.

If it's Unixware someone else'll have to chime in.
maybe "uname -a" and "pkginfo -i" for starters ?


--
Brian K. White -- br...@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani

ThreeStar

unread,
Dec 13, 2006, 12:05:10 PM12/13/06
to
/usr/bin/lpr is available in rel 4 systems (at least on the 3.2v4.2 I
checked). It's hard-linked to lp. If command /usr/bin/lp is available
on your system then you can restore the link:

ln /usr/bin/lp /usr/bin/lpr

If /usr/bin/lp is missing, too, then something went awry in the
"restore" process.

Ray Robert
Three Star Software

0

unread,
Dec 14, 2006, 3:57:58 PM12/14/06
to
Thanks for the help. Here's what I've found thus far. This is no
"/usr/bin/lp" and there is no "/usr/bin/lpr". There is no "scoadmin"
command anywhere on this box, and the results of uname -X are:

# uname -X

System = scosysv
Node = scosysv
Release = 3.2v4.2
KernelID = 93/04/28
Machine = i80486
BusType = MCA
Serial = 2BC013036
Users = 16-users
OEM# = 0
Origin# = 1
NumCPU = 1

As far as I can tell, nothing went wrong in the restore process. There
were no errrors shown on screen. Everything was on 3 or 4 floppy disks
and a tape. I just don't know where to look for an lp or lpr package
for a SCO box. Thanks for the help.

Brian K. White

unread,
Dec 14, 2006, 4:27:59 PM12/14/06
to
On Thu, 2006-12-14 at 12:57 -0800, 0 wrote:

> Thanks for the help. Here's what I've found thus far. This is no
> "/usr/bin/lp" and there is no "/usr/bin/lpr". There is no "scoadmin"
> command anywhere on this box, and the results of uname -X are:
>
> # uname -X
>
> System = scosysv
> Node = scosysv
> Release = 3.2v4.2
> KernelID = 93/04/28
> Machine = i80486
> BusType = MCA
> Serial = 2BC013036
> Users = 16-users
> OEM# = 0
> Origin# = 1
> NumCPU = 1
>
> As far as I can tell, nothing went wrong in the restore process. There
> were no errrors shown on screen. Everything was on 3 or 4 floppy disks
> and a tape. I just don't know where to look for an lp or lpr package
> for a SCO box. Thanks for the help.
>

Got me swinging. Maybe someone else can say what's the equivalent of the "customquery listfiles" command I asked for?
On OSR 5 and up that command would spit out a list of files the software manager thought were installed.
I don't know if it goes back to 4.2
I know you have "custom" but that doesn't mean you necessarily have "customquery" or if you do that it has the option "listfiles".

Wow, a real live MicroChannel box? I've never seen one in person.

ThreeStar

unread,
Dec 14, 2006, 6:45:03 PM12/14/06
to
On those SVR4 systems the administration tool is "sysadmsh" rather than
"scoadmin". However in either you can get straight to Software
installation by just running "custom".

LPR is a package in the UNIX System V Extended Utilities.

Ray Robert
Three Star Software

Brian K. White wrote:

Steve M. Fabac, Jr.

unread,
Dec 15, 2006, 3:09:19 AM12/15/06
to
ThreeStar wrote:
> On those SVR4 systems the administration tool is "sysadmsh" rather than
> "scoadmin". However in either you can get straight to Software
> installation by just running "custom".

I just picked up this thread and noted that the OP mis identified his system
as Sys V Rel 4: SCO 3.2v4.2 is Sys V release 3. The operating system that became
Unixware and its decedents is Sys V Rel 4.

For 3.2v4.2 use the fixperm -n /etc/perms/"package name" to generate a list
of permissions and missing files a-la Openserver 5.0 custom -> software -> verify system.

The /etc/perms/"package name" files contain information on the files of the
package and which floppy disk of the installation set the file was loaded
from: X1, B1, etc. /usr/bin/lp is on the X1 disk. You can use tar to extract it.

0

unread,
Dec 18, 2006, 4:28:33 PM12/18/06
to
Thanks to everyone for all your help. From the looks of it, I need an
X1 disk from which I can install the /usr/bin/lp program. I've looked
through what I have (N1, N2, M1, 1) but no X1 disk. Does someone out
there have an extra X1 disk? Thanks again.
0 new messages