[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim and printer answers



* Carel Fellinger (cfelling@iae.nl) [020228 13:53]:
> So `cat filename > /dev/lp0' still works?
> But the following failed?  Strange.
> 
> > >     # cat << EOF > /dev/lp0
> > >     > a very short line
> > >     > a second line
> > >     > a final line
> > >     > << EOF

Not so strange. Try it this way:

  # cat << EOF >| /dev/lp0
  > a very short line
  > a second line
  > a final line
  > EOF

The most important change I made is to make that last line just say
"EOF", without the "<<". Also, changing from > to >| might make a
difference, if noclobber is set in your shell.

good times,
Vineet

-- 
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume/
-- 
"I disapprove of what you say, but I will defend to the death your right
to say it." --Beatrice Hall, The Friends of Voltaire, 1906

Attachment: pgpJ8egQxpTLq.pgp
Description: PGP signature


Reply to: