Solved

Send Email Shell Script

Posted on 2004-03-25
1
303 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now