Re: How to send mails with attachments for each file in a directory ?
On Tuesday 29 January 2008 12:01, Jabka Atu wrote:
> Good day,..
>
>
> since i can't send find a fast way to send many pictures to Gmail /
> ISP mail (Quata limit for single mail).
>
> I thought it will be fun to do it in one line :
>
> find *.jpg -exec uuencode '{}' '{}' | mail someone@gmail.com \;
>
> but this won't work since :
>
>
> find: missing argument to `-exec'
I think you're using "find" wrong. On my (debian "stable") system,
in a randomly selected directory, I get:
> # find *.jpg
> find: *.jpg: No such file or directory
... versus
> # find . -name "*.jpg"
> [big list of files]
Try that.
-- A.
--
Andrew Reid / reidac@bellatlantic.net
Reply to: