home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6319 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.2 KB

  1. Path: sparky!uunet!cs.utexas.edu!news
  2. From: woody@cs.utexas.edu (James Woodgate)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: lp or something like it?
  5. Date: 21 Jul 1992 13:47:08 -0500
  6. Organization: CS Dept, University of Texas at Austin
  7. Lines: 28
  8. Message-ID: <l6omtcINN5g4@priddy.cs.utexas.edu>
  9. References: <kBN8NB4w165w@ssg.com>
  10. NNTP-Posting-Host: priddy.cs.utexas.edu
  11. Summary: Bash script
  12.  
  13. In article <kBN8NB4w165w@ssg.com> unixsys@ssg.com (Rick Emerson) writes:
  14. >                    WARNING   Newbie question   WARNING
  15. >
  16. >Er, what print spoolers are available and/or distributed with mcc-interim?  
  17. >
  18. >Rick "tired of ALT-f4 login cd /home/base cp foo /dev/lp2" Emerson
  19. >
  20. I use a bash script, to print in the background:
  21.  
  22. #Bash script
  23. cat < $1 > /dev/lp1 &
  24.  
  25. call this file lp, chmod +x lp, and use...
  26. >lp foo
  27.  
  28. I had hoped to just have an alias for this, but bash wants
  29. to execute $1, instead of just useing(sp???) it for a data file.
  30.  
  31. Another Newbie Question!! :D
  32.  
  33. How can I make this script a Bash Alias???
  34.  
  35.  
  36. -- 
  37. -----------------------------------------------------------------------
  38.    -.sig temporarily under construction-
  39.  
  40.                                       Address: woody@cs.utexas.edu
  41.