site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·Forum FAQ ·Attitude Adjustment ·Linux docs ·DistroWatch ·OPLM ·FreeBSD Handbook
AuthorAll Replies


PetePuma
How many lumps do you want
Premium,MVM
join:2002-06-13
Arlington, VA

reply to DprssdIsntFn

Re: 'find' and 'sendmail'

said by DprssdIsntFn:

sendmail requires that there be no space between angle bracket and the expanded argument. e.g.
sendmail -t <emails/new/test1
 

I'm curious to see what other folks say. However I can't see why Sendmail would have any visibility into what the shell does in terms of redirection. Are you sure the space is the only problem?


nwrickert
sand groper
Premium,MVM
join:2004-09-04
Geneva, IL
kudos:7
Reviews:
·AT&T U-Verse

You are correct. The space is a bogus issue.

I think the problem here is that "<" is a shell meta-character, but "find" is passing that directly to sendmail, bypassing the shell. So there is nothing to interpret "<" as file redirection.

Simplest would be to write a short shell script to mail one file, and then use that shell script as command that is run by "find ... -exec".
--
AT&T dsl; Westell 2200 modem/router; SuSE 10.1; firefox 2.0.0.4


Sunday, 12-Feb 02:03:20 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online! © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics