On Thu, Feb 28, 2002 at 05:12:10PM -0800, paul wrote: > I am having problems with cut and paste on yahoo so > this is my typing. > Printcap > /etc/magicfilter/hp4000-filter is now > /etc/magicfilter/ljet4-filter > > ls /etc/magicfilter/ljet4-filter returns the command > check with joe (editor) and file is there.
Okee, so now the filtering is setup correctly for your type of printer. > Both cat commands work when it is EOF but not << EOF > printing with steps. printer does have to ahvethe form > feed button pushed because of the small file. Sorry for that typo (<< EOF), glad others noted it. And indeed you needed to use the formfeed button in this case. The printer filter normally takes care of this, but here we bypassed it. The next thing to try is to see whether the filtering *works*. # cat <<EOF | /etc/magicfilter/ljet4-filter >/dev/lp0 a short line the next one EOF This should result in printer output, the lines should both begin at the left margin (no chair-case) and the filter should generate the formfeed command (no need to press the formfeed button this time) If this works you're almost done:) > /usr/sbin/lpd exists right, and now we need to know if `lpr' exists. (I mistakenly asked for `lp' before, but indeed it should be `lpr') Try this: # type lpr if this tells you where lpr is located all should work, just try: # lpr <EOF a short line and an other one EOF Dying to hear it works this time:) ... > mailname is troubling. > isp.net is this correct? not likely, but start a fresh thread for that please. ... > type lp not found sorry, but I should have asked for `type lpr', see above:( -- groetjes, carel