Solved

Send Email Shell Script

Posted on 2004-03-25
1
305 Views
Last Modified: 2010-04-21
I'm trying to write a script which sends a email to a specific address but it always wants a "dot and a return for the "Cc:"

The script:

mail -s"Proxy Error! $1 down at `date`" root

is there any possybility to automate a "dot" and a return ?

0
Comment
Question by:timan72
1 Comment
 
LVL 45

Accepted Solution

by:
sunnycoder earned 250 total points
ID: 10675828
Hi timan72,

put that contents in a file and redirect input to that file .... btw you can specify cc users on the same line using the -c flag


Sunnycoder
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux script help 27 256
Trying to use two loops in a perl script but not getting results need. 10 88
Problem to line 1 49
read a word from a file in linux shell script 4 75
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question