10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi
I have below shell script to send mail alert , however I want to add more functionality in this script and that is , script should only check that file between 9 am to 5pm , and if there is no activity in this time 9 am to 5 pm for 2hours then it should give me mail alert, please help... (2 Replies)
Discussion started by: scazed
2 Replies
2. Shell Programming and Scripting
HI Guys,
I am writing one shell script to send the mail alert to some email id's if the file not modified in last 10 mins but its not working, I believe MTIME is null string is wrong . can you please assist me on this.
script :-
filename="abc.txt"
echo "Filename is $filename"... (1 Reply)
Discussion started by: abhigrkist
1 Replies
3. Shell Programming and Scripting
I am in need of a script that will send out emails while going through a NAT. What I have that works is as follows:
display_remote_IP | sort | uniq | while read i
do
FOUND=0
for IP in `echo $ACCEPTABLEIP`
do
if ; then
FOUND=1... (2 Replies)
Discussion started by: ldapguy
2 Replies
4. Shell Programming and Scripting
Hello All,
I m trying to send mail from my unix script,
I have used the below command
mailx -s 'hi' email address < temp.txt
It is not giving me any error,but I couldn't receive the mail
Can you please help me.
Many Thanks,
Pragyan (6 Replies)
Discussion started by: prarat
6 Replies
5. Shell Programming and Scripting
Hi,
I have shell script which checks the filesystem check but does not send the mail. I might be missing something very simple.. could you please help?
#!/bin/sh
_servers="machine name"
_out="/tmp/output.$$"
_email="me@there.com"
_sub="Disk Space Report $(date)"
_mail=/usr/bin/mail... (5 Replies)
Discussion started by: Pandee
5 Replies
6. Shell Programming and Scripting
I need to design a script which will run evry hour and work in such a way that i need to send an alert mail if some value exceeds the threshold value. But, if the value is within the threshold value then it will just send once report mail. (1 Reply)
Discussion started by: rahulparo
1 Replies
7. Shell Programming and Scripting
hi I need a shell script which runs perpetually in background and monitors different aspects of different users on different files and their usages
for example say there r 3 users
so i want when they log in i.e. their log in time and their file access, modify and change log of each file of a... (3 Replies)
Discussion started by: rrd1986
3 Replies
8. Ubuntu
I m working on a script which monitors the disk usage and send a mail to the users if it reaches a limit of 90%.
hlp me (2 Replies)
Discussion started by: navdeep5673
2 Replies
9. Programming
i'm trying to find a way to monitor the CPU/Memory status of a solaris station using vmstat. I like to write a small script to periodically run vmstat and store the output. Can anyone show me how (preferrably in C++ if possible)? Thanks in advance. (6 Replies)
Discussion started by: shingpui
6 Replies
10. Shell Programming and Scripting
Please help me in writing the script for sending an attachment through email.(For example my text file name is :abc.txt and it is in directory d:/abc) (1 Reply)
Discussion started by: anitha126
1 Replies