home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!darkstar.UCSC.EDU!orchid.UCSC.EDU!stephen
- From: stephen@orchid.UCSC.EDU (coram populo)
- Newsgroups: comp.sys.sun.admin
- Subject: Help with FIND in shell script
- Date: 26 Jan 1993 23:16:56 GMT
- Organization: Santa Cruz
- Lines: 16
- Distribution: world
- Message-ID: <1k4gp8INN8ei@darkstar.UCSC.EDU>
- NNTP-Posting-Host: orchid.ucsc.edu
-
- Can someone give me an idea on how to make the find command use
- the {} in the -exec usage.
-
- For example, I want to mail users automagically when their mail
- in the system spool is over a particular size.
-
- e.g. as I wrote it -
-
- find * -size 100000c -exec mail {} < ./mailmessage \;
-
- But this does not work- it never finds the < ./mailmessage part.
-
- Thanks in advance for suggestions etc.
-
- Stephen Hauskins
- UCSC
-