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
GSHADOW(5)						   File Formats and Conversions 						GSHADOW(5)

NAME
gshadow - shadowed group file DESCRIPTION
/etc/gshadow contains the shadowed information for group accounts. This file must not be readable by regular users if password security is to be maintained. Each line of this file contains the following colon-separated fields: group name It must be a valid group name, which exist on the system. encrypted password Refer to crypt(3) for details on how this string is interpreted. If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, users will not be able to use a unix password to access the group (but group members do not need the password). The password is used when a user who is not a member of the group wants to gain the permissions of this group (see newgrp(1)). This field may be empty, in which case only the group members can gain the group permissions. A password field which starts with an exclamation mark means that the password is locked. The remaining characters on the line represent the password field before the password was locked. This password supersedes any password specified in /etc/group. administrators It must be a comma-separated list of user names. Administrators can change the password or the members of the group. Administrators also have the same permissions as the members (see below). members It must be a comma-separated list of user names. Members can access the group without being prompted for a password. You should use the same list of users as in /etc/group. FILES
/etc/group Group account information. /etc/gshadow Secure group account information. SEE ALSO
gpasswd(5), group(5), grpck(8), grpconv(8), newgrp(1). shadow-utils 4.5 01/25/2018 GSHADOW(5)
All times are GMT -4. The time now is 04:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy