Problems with /usr/bin/lpf

Problems with /usr/bin/lpf

Post by Dan McGui » Fri, 15 Jul 1994 11:54:55

I have a problem with my /usr/bin/lpf.  It looks like this:

sed -e 's/$/^M/'
printf "\014"

Simple enough, right?  Of course the "^M" is a control character.  (I
tried using echo -n "^L" instead of the printf command, and still had
the problem which I'm about to describe.)

If I run lpf on two files, like "lpf <testfile >otherfile", it works
fine.  But when I run "lpf <testfile >/dev/lp2", the first two lines
of the file get cut off--they aren't printed.  When I use this lpf as
the "if" field in /etc/printcap, the first two lines get cut off, and
error messages like these appear in my "errs" file:

^Mshell-init: Permission denied
^M: Permission denied
^M: Permission denied

Here again, the ^M's are control characters.  I really can't make any
sense of this at all.  Is the shell trying to run programs called
"^Mshell-init" and "^M", or what?

If someone could help I'd appreciate it.

                           ~burning inside~


1. /usr/bin, /usr/local/bin, /sbin or /opt/bin, /var/opt/bin - I'm confused.

Hi all,

All these directories are for executable binary, right ?  How does one
decide which executable binary goes to which directory ?

/usr/bin : For what ?
/usr/local/bin:  for what ?
/sbin : ??
/opt/bin : ??
/var/opt/bin : ??

Is there any other /bin beside those above ?


2. Masquerading official IP-Adresses

3. /bin /usr/bin /usr/local/bin etc

4. On demand PPP logins?

5. /usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

6. Help! Timing Running Prog's?

7. diff. between /usr/vac/bin/xlc & /usr/bin/xlc

8. SSH installation problems.

9. /usr/local/bin/perl ->/usr/bin/perl

10. Why does "cd /usr/////bin" = "cd /usr/bin"?

11. /usr/dt/bin/dtksh and /usr/bin/ksh

12. /usr/local/bin vs. /usr/bin

13. why /usr/bin/mailx /usr/bin/mail set the group to be that of the sender