From: lewis@radonc.unc.edu (Jeff Lewis)
Subject: Re: HP plotter connection?
Date: 9 Jul 1993 17:51:29 GMT [thread overview]
Message-ID: <21kb71$ckd@samba.oit.unc.edu> (raw)
In-Reply-To: 1993Jul5.134650.28130@dres.dnd.ca
My mail bounced, too:
We've got the following setup with our HP7550A hanging off of a 5000/200:
/etc/printcap:
plotter1|hp1|hp7550|7550|HP7550 8-pen auto-feed plotter:\
:lp=/dev/tty01:\
:sd=/usr/spool/plotter1d:\
:br#9600:\
:fc#0177477:\
:ff=PG;:\
:lf=/usr/adm/lpd-errs:\
:of=/usr/local/bin/hp7550f:\
:sh:\
:rs:
listing of /dev:
> l@quim(6): ll -d /dev/tty01
> crw--w--w- 1 root wheel 34, 3 Jul 9 13:31 /dev/tty01
and where "hp7550f" is the c program:
/******* hp7550f.c **********/
#include <stdio.h>
#include <sgtty.h>
#define BUFSIZE (1024)
main(argc, argv)
int argc;
char **argv;
{
hp7550_init();
hp7550_cat();
exit(0);
}
hp7550_init()
{
struct sgttyb params;
ioctl(fileno(stdout), TIOCGETP, ¶ms);
params.sg_flags &= ~(ECHO|XTABS|CRMOD);
params.sg_ospeed = params.sg_ispeed = B9600;
ioctl(fileno(stdout), TIOCSETP, ¶ms);
}
hp7550_cat()
{
char c[BUFSIZE];
register int got;
while ((got = read(fileno(stdin), c , BUFSIZE)) > 0)
{
write(fileno(stdout), c, got);
}
}
/* END OF CODE */
I inherited this setup, and I'll try to help if I can, but now you know about as
much as I do about it - it hasn't been broken so I haven't fiddled with it.
Good luck,
- -- ---- -------- ---------------- --------------------------------
Jeff Sys Admin, Dept. of Radiation Oncology
lewis@radonc.unc.edu UNC School of Medicine, Chapel Hill
- -- ---- -------- ---------------- --------------------------------
Jeff Sys Admin, Dept. of Radiation Oncology
lewis@radonc.unc.edu UNC School of Medicine, Chapel Hill
prev parent reply other threads:[~1993-07-09 17:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-06-28 22:01 HP plotter connection? Alan McCormac
1993-07-05 13:46 ` Alan McCormac
1993-07-05 16:18 ` Jerry Weiss
1993-07-07 16:30 ` Carl Lowenstein
1993-07-09 17:51 ` Jeff Lewis [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox