iheitla@cs.vu.nl (Ilja Heitlager) (04/08/91)
Is there anybody who can tell me, how I can get my /dev/lp* back. I got a PS/2-m70 running SCO-ODT and recently I wanted to install a printer to my system(first time) so, as in the manual, I typed: date > /dev/lp0 but I discovered that at my system it wasen't attached to lp0 but to lp1 so 'date > /dev/lp1' worked. (sigh very nice the actual date on paper, hmmm). I saw that both /dev/lp and /dev/lp0 had 2 link's so I linked lp to lp1 but only now lp lp0 lp1 had 3 links and sending to lp1 gave "/dev/lp1 cannot create", so I removed /dev/lp /dev/lp0 (not for young readers) and so I spend my days reading actual date on screen, every now and then (I believe in miracles) I type 'date >/dev/lp1' but then she answers "/dev/lp1 cannot create". I think a lot about those rudely destroyed lp and lp0, how can I get my printer working(at /dev/lp1) so she will write the actual date for me all day again. Ilja, ==================================================== Ilja Heitlager | Vrije Universiteit | E-Mail <iheitla@cs.vu.nl> Amsterdam | The NetherLands. | =====================================================
rvdp@cs.vu.nl (Ronald van der Pol) (04/09/91)
iheitla@cs.vu.nl (Ilja Heitlager) writes: >Is there anybody who can tell me, how I can get my /dev/lp* back. Just create a new special file. The major device number of the printer driver is 6. The minor device number for lp0, lp1 and lp2 are 0, 1 and 2 resp. If you don't have write permission to these files you get the 'cannot create' error. BTW Did your system switch to DST correctly? Our system still doesn't understand DST started. The TZ is 'MET-1MET_DST,M3.5.0,M9.5.0'. 'date' still thinks the timezone is 'MET'. This is with SCO 3.2.2. -- Ronald van der Pol <rvdp@cs.vu.nl>
wul@sco.COM (Wu Liu) (04/11/91)
/--iheitla@cs.vu.nl (Ilja Heitlager) said... | Is there anybody who can tell me, how I can get my /dev/lp* back. | | I got a PS/2-m70 running SCO-ODT and recently I wanted to install a printer | to my system(first time) so, as in the manual, I typed: | date > /dev/lp0 | but I discovered that at my system it wasen't attached to lp0 but to lp1 | so 'date > /dev/lp1' worked. | (sigh very nice the actual date on paper, hmmm). | I saw that both /dev/lp and /dev/lp0 had 2 link's so I linked lp to lp1 | but only now lp lp0 lp1 had 3 links and sending to lp1 gave | "/dev/lp1 cannot create", so I removed /dev/lp /dev/lp0 (not for young readers) | and so I spend my days reading actual date on screen, every now and then | (I believe in miracles) I type 'date >/dev/lp1' but then she answers | "/dev/lp1 cannot create". | I think a lot about those rudely destroyed lp and lp0, | how can I get my printer working(at /dev/lp1) so she will write the actual date | for me all day again. \-- An 'ls -l' of /dev/lp* yields: crw------- 2 bin bin 6, 0 Jun 13 1990 /dev/lp crw------- 2 bin bin 6, 0 Jun 13 1990 /dev/lp0 crw------- 1 bin bin 6, 1 Jun 13 1990 /dev/lp1 crw------- 1 bin bin 6, 2 Jun 13 1990 /dev/lp2 Note that the devices are only writeable (and readable, but that's less important) by uid bin. In order for just anybody to be able to send output to this device, you'd need to change the permissions to 666. This could be bad, though, since then anybody on your system could send output to the printer at any time. Why not just turn output banners off and use 'date | lp'?
martin@hppcgelo.hp.com (Martin Croome) (04/16/91)
rvdp@cs.vu.nl (Ronald van der Pol) writes: > > BTW Did your system switch to DST correctly? Our system still doesn't > understand DST started. The TZ is 'MET-1MET_DST,M3.5.0,M9.5.0'. 'date' Try 'MET-1MET_DST;M3.5.0,M9.5.0 ^ | Read the TIMEZONE(F) manual page for more details. > still thinks the timezone is 'MET'. This is with SCO 3.2.2. > > -- > Ronald van der Pol <rvdp@cs.vu.nl> > ---------- ------------------------------------------------------------------------------- Martin CROOME !'s - hplabs!hpgnd!hppcmart!martin Hewlett Packard @'s - martin@hppcmart.grenoble.hp.com Grenoble Personal Computer Division HPDesk - Martin CROOME / HP6300/K1 Technical Marketing -------------------------------------------------------------------------------