Sponsored Content
Full Discussion: I need technical support
Contact Us Forum Support Area for Unregistered Users & Account Problems I need technical support Post 303022603 by Unregistered on Tuesday 4th of September 2018 03:09:09 AM
Old 09-04-2018
I need technical support

I need to create script to send mail to different group mail is like abc@gmail.com is group name and this group having 10 members. so how i can add the name of group and it resolve the members email id from the group and send mail automatically? how to do it by unix cmds. please help me

here in export mailto= currently i am using different mail ids but i need to use group of mail ids in that place like mailto=abc@gmail.com.

For using this group is there any need to do changes in permission of group and how.
please let me know
Code:
-----------------------------------------------------------
rm /base/app/etl/work/base_Disk_Space_Tuot.csv;
df -k /base/app/ > /base/app/etl/work/base_Disk_Space_Tuot.csv; 
export MAILFROM="hema@gmail.com"
export MAILTO="hemae@gmail.com hema.bhure@gmail.com"
export SUBJECT="Attached Report For base_Total_Disk_Space_Utilization"
export BODY=""
export ATTACH="/base/app/etl/work/base_Disk_Space_Tuot.csv"
export MAILPART=`uuidgen` ## Generates Unique ID
export MAILPART_BODY=`uuidgen` ## Generates Unique ID
(
 echo "From: $MAILFROM"
 echo "To: $MAILTO"
 echo "Subject: $SUBJECT"
 echo "Hello Team,
 
Please find attached file for TOTAL SPACE FOR app!!!! 

Thanks&Regards,
 hhh
 
 --------------- This is automated mail. Please do not reply to this mail------------------"
 
uuencode $ATTACH $(basename  $ATTACH)
 echo "--$MAILPART--"
) | /usr/sbin/sendmail $MAILTO

Unregistered
 

We Also Found This Discussion For You

1. What is on Your Mind?

UNIX.com Free Technical Support Infographic on YouTube

Still learning Adobe After Effects, I just put together this 1 minute infographic for the site. I could have done a better job with the resolutions of some of the "in laptop" screen shots; but then again, I'm not even close to being an expert on all these Adobe graphics tools, but I had fun... (0 Replies)
Discussion started by: Neo
0 Replies
control_rancid(1)					      General Commands Manual						 control_rancid(1)

NAME
control_rancid - run rancid for devices of a group SYNOPSIS
control_rancid [-V] [-m mail_rcpt] [-r device_name] group DESCRIPTION
control_rancid is a sh(1) script to parse a group's router.db(5), run rancid for each of the devices, possibly re-run rancid for devices that failed collection, e-mail diffs, and e-mail error reports. The command-line options are as follows: -V Prints package name and version strings. -m mail_rcpt Specify the recipient of diff mail, which is normally rancid-<group>. The argument may be a single address, multiple comma separated addresses, or -m may be specified multiple times. -r device_name Specify the name, as it appears in the router.db, of a particular device to collect and generate diffs for. The device must be marked "up". The -r option alters the subject line of the diff mail. It will begin with <group name>/<device name> rather than just the group name alone. control_rancid is normally (and best) run via rancid-run(1) which provides a locking mechanism on a group basis and saves output in a log file for each group. SEE ALSO
rancid-run(1), rancid.conf(5), router.db(5) 5 October 2006 control_rancid(1)
All times are GMT -4. The time now is 01:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy