home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / admin / 10801 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  772 b 

  1. Path: sparky!uunet!stanford.edu!agate!darkstar.UCSC.EDU!orchid.UCSC.EDU!stephen
  2. From: stephen@orchid.UCSC.EDU (coram populo)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Help with FIND in shell script
  5. Date: 26 Jan 1993 23:16:56 GMT
  6. Organization: Santa Cruz
  7. Lines: 16
  8. Distribution: world
  9. Message-ID: <1k4gp8INN8ei@darkstar.UCSC.EDU>
  10. NNTP-Posting-Host: orchid.ucsc.edu
  11.  
  12. Can someone give me an idea on how to make the find command use
  13. the {} in the -exec usage.
  14.  
  15. For example, I want to mail users automagically when their mail
  16. in the system spool is over a particular size.
  17.  
  18. e.g. as I wrote it -
  19.  
  20. find * -size 100000c -exec mail {} < ./mailmessage \;
  21.  
  22. But this does not work- it never finds the < ./mailmessage part.
  23.  
  24. Thanks in advance for suggestions etc.
  25.  
  26. Stephen Hauskins
  27. UCSC
  28.