From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ad6c47ccb5442615 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-07-09 10:57:07 PST Path: gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!news-feed-2.peachnet.edu!concert!samba.oit.unc.edu!lewis From: lewis@radonc.unc.edu (Jeff Lewis) Newsgroups: comp.sys.dec Subject: Re: HP plotter connection? Date: 9 Jul 1993 17:51:29 GMT Organization: Radiation Oncology, NCMH/UNC, Chapel Hill, NC Distribution: world Message-ID: <21kb71$ckd@samba.oit.unc.edu> References: <1993Jun28.220118.6997@dres.dnd.ca> <1993Jul5.134650.28130@dres.dnd.ca> NNTP-Posting-Host: compton.radonc.unc.edu Keywords: plotter,serial 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 #include #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