|
|||||||||||
|
Re: How to send mails with attachments for each file in a directory ?
From: Magnus Therning <magnus(at)therning.org>
Date: Thu Jan 31 2008 - 04:16:28 EST
I think you're using `find` wrong. AFAIK find takes a directory first, then some filter statements and lastly a âcommandâ. That means I'd write the first part of the `find` portion like this: find . -name \*.jpg ... But I'm not convinced `find` is the best thing to use in this case. If all files to be mailed are in the current directory I would personally have used a `for` loop: for f in *.jpg; do uuencode $f $f | mail someone@gmail.com; done Just my 2p. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus.therning@gmail.com http://therning.org/magnus What if I don't want to obey the laws? Do they throw me in jail with the other bad monads? -- Daveman -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
This archive was generated by hypermail 2.1.8 : Thu Mar 06 2008 - 22:51:53 EST |
||||||||||
|
|||||||||||