SUMMARY: lp permissions...

Claude Cantin cantin at nrccsb2.di.nrc.ca
Wed May 8 07:07:31 AEST 1991


About ten days ago, I asked if one could print, using "lp", a file
with permissions "700", as

    lp -ddecwriter filename

The consensus is that NO, it cannot be done, but that

    cat filename | lp -decwritter
    lp -ddecwriter < filename

will both work!

One of the replies (Jeff hanson - tohanson at gonso.lerc.nasa.gov) was kind
enough to send the following C-Shell script he had got from (dave Carek,
eddc at opus.lerc.nasa.gov):

    # !/bin/csh
    set last = `echo $#argv`
    set file = $argv[$last] 
    @ x = `echo $#argv` - 1
    set options = `echo $argv | cut -d" " -f1-$x` 
    cat $file | lp $options

You may call that script "/usr/local/bin/tlp" and use that command instead
of "lp", or alias "lp" to "tlp"...

This seems to work fine for me...

Another reply, from Dan Karron (karron at nyu.edu), mentioned that (apparently)
there is a complete rewrite of lp in the next version of IRIX...

Thank you for all who replied,

    Claude Cantin                           tel: (613) 993 0240
    M-60, Chemin Montreal                   FAX: (613) 954 2561
    Conseil National de Recherches Canada   BITNET: cantin at nrcvm01
    Ottawa, Canada (K1A 0R6)                INTERNET: cantin at nrccsb3.di.nrc.ca
-- 
    Claude Cantin			    tel: (613) 993 0240
    M-60, Chemin Montreal		    FAX: (613) 954 2561
    Conseil National de Recherches Canada   BITNET: cantin at nrcvm01
    Ottawa, Canada (K1A 0R6)		    INTERNET: cantin at nrccsb3.di.nrc.ca



More information about the Comp.sys.sgi mailing list