Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: TMP on January 21, 2002, 06:12:58 PM
-
Just a quick question looking to email a file from command line.
Would appreciate a point in the right direction.
Thanks
-
Hi,
Just a simpel example script:
----------------------
#!/bin/sh
FROM_DOMAIN=foor.bar
MAIL_ADDRESS=mailrecipient
ATTACH_FILE=/var/log/messages.monitor
mail -s "Star Support Monitor $FROM_DOMAIN: $ATTACH_FILE1" $MAIL_ADDRESS < $ATTA
exit 0
---------------------
guestHH
-
Thanks for the help.
-
You could always just use Pine!
type: pine - at the command prompt