RE: [opensuse] using 'mail' from command line.
Use a pipe, with the contents of the email. I have used that in a script.
~~~~~
Thank you, this helps. Using the -a switch I noticed 'mail' only sends one attachment even if using a wild card.
For example, mail -s Test -a LN*.log me@example.com, will only send the fist file with LN and not the rest.
LN080303.log <--- 'mail' will attach this and no others. LN080304.log LN080305.log LN080306.log
How can 'mail' send more than one file?
Perhaps listing them explicitly: -a LN080303.log -a LN080304.log -a LN080305.log .... etc. ~~~~~~~ That would be good except those file names, dates actually, will change daily. I am going to integrate this into a cron job. ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2008-03-06 at 15:48 -0800, James D. Parra wrote:
Perhaps listing them explicitly:
-a LN080303.log -a LN080304.log -a LN080305.log .... etc. ~~~~~~~
That would be good except those file names, dates actually, will change daily. I am going to integrate this into a cron job.
Then you have two alternatives: make a tar.gz archive and send that, or create a script or something that creates the appropriate command line for "mail". - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFH0JA9tTMYHG2NR9URAlK8AJ9U57VH1xy2vuoMUMn5f+Lp0UfKMQCgkmxD 2izCbRpicE2zXdtmquEIizQ= =UWgO -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Carlos E. R.
-
James D. Parra