I need a script that script extract info from mail

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting I need a script that script extract info from mail
# 1  
Old 10-19-2004
Question I need a script that script extract info from mail


I receive email once an hour that looks like:
subject line: dialin
ip address
ip address

sometimes the body has no ip address in it(blank mail)

I want a script that will send to my email every 12 hours the ip numbers and the time and data
something like:
data, time, ip

How can I do that?

Thank you.
# 2  
Old 10-19-2004
This is not a board to request scripts to be written for you. Try and work out an approach and post what you have.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

A shell script to run a script which don't get terminated and send a pattern from the output by mail

Hi Guys, I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies

2. Shell Programming and Scripting

Script to copy certain info from several directories

Hi, I am writing a script to copy certain file name in txt file . It is working fine if I provide a single directory name (for example "/eos/uscms/store/user/pooja04//analysis2012/525/data/doubleele/2012/datav1/" ) where those specific files are present ending with *root . But I want to modify... (14 Replies)
Discussion started by: nrjrasaxena
14 Replies

3. Shell Programming and Scripting

HELP: Shell Script to read a Log file line by line and extract Info based on KEYWORDS matching

I have a LOG file which looks like this Import started at: Mon Jul 23 02:13:01 EDT 2012 Initialization completed in 2.146 seconds. -------------------------------------------------------------------------------- -- Import summary for Import item: PolicyInformation... (8 Replies)
Discussion started by: biztank
8 Replies

4. Shell Programming and Scripting

script to read mail on a mail server

Hi All, Is there any way Unix shell script can directly read a mail on a mail server (for eg. abc@xyz.com) and save it as a text file in a unix directory ? Thanks PRKS ---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ---------- I am using ksh (1 Reply)
Discussion started by: PRKS
1 Replies

5. Shell Programming and Scripting

script to pull info from my email?

Hi, I need help writing a script that would pull info from an email inbox and add it to an Evolution Calendar. I'm pretty sure I can google the commands to add the info to the calendar. The part that I really need help with is getting the info from the email into the command. Basically for... (6 Replies)
Discussion started by: xinix
6 Replies

6. Shell Programming and Scripting

Extract info from csv

I have some input file, which contains some lines which are comma separated. Eg. a,b,id=999],d d,f,g,id=345],x x,y,x,s,id=677],y I run a loop to read the lines one by one. What i want is to extract the value on the right of id=. I cannot do it by Awk, since the column number is not fixed.... (5 Replies)
Discussion started by: indianjassi
5 Replies

7. Shell Programming and Scripting

Script to ssh to different server and get some info

Hi Friends, i am trying to write a script on server MACHINE1 to ssh to server MACHINE2 and fetch some information. i am using the following command: ChanCount=`ssh MACHINE2 "disp card all | grep Inserv | grep -v STATE | wc -l"` The "disp" command works well on MACHINE2 but not working... (2 Replies)
Discussion started by: am_yadav
2 Replies

8. AIX

Extract info

Anyone have a better idea to automate extraction of info like ... "uname" "ifconfig" "ps efl" "netstat -ao" etc. from several hundred aix, solaris, red hat boxes? without logging into each box and manually performing these tasks and dumping them to individual files? thanks for any input (1 Reply)
Discussion started by: chm0dvii
1 Replies

9. UNIX for Dummies Questions & Answers

using cut to extract info

a simple question, how can i use cut (after using grep) to extract the last four digits on a line. so say i had a string http://blabla:9020, how would I extract the port?? -Fez (4 Replies)
Discussion started by: hafhaq
4 Replies

10. Shell Programming and Scripting

sys info script

Hi, i need a shell script that write in a file called sys.txt this: <output of date command> HN <host name> OS <OS name> <OS version> I can have this info with uname command, but I can't write these in sys.txt. Can any one help me? (1 Reply)
Discussion started by: FastMagister
1 Replies
Login or Register to Ask a Question

Featured Tech Videos