Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Check email send text message through Bash script

Posted on 2006-04-06
6
Medium Priority
?
3,729 Views
Last Modified: 2008-01-09
Hello

I want to write a script that checks my email (imap) and send me a text message (to cell phone) if the word "ALERT" is in the title of any unread messages. However I don't want to mark all the messages marked as read when the script is done.

Any ideas?

Thanks
jculkincys
0
Comment
Question by:jculkincys
  • 3
  • 3
6 Comments
 
LVL 6

Expert Comment

by:mightyone
ID: 16401992
all mails are stored in one file to filesystem.
it is a simple text file where all mails are glued together.


cat it and grep ALERT then send it.

better would be to know a bit more of the line where the alert is quoted so yopu wont get sms when i write you a mail saying "ALERT me"  ....
0
 
LVL 2

Author Comment

by:jculkincys
ID: 16402487
ok thats a good start

do you know how I would send it in sms?
0
 
LVL 6

Expert Comment

by:mightyone
ID: 16407462
send a mail to one of these portals, they will do it for u

http://www.cellular.co.za/email_to_sms_gateways.htm
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
LVL 2

Author Comment

by:jculkincys
ID: 16408351
could you just give me a rough example of the command.

would it be hard to decipher between emails that have been read and not read?
Also could I ensure that I would not be marking the mails as "read" when the script passed over them.

thanks alot for you help with both of my questions
0
 
LVL 6

Accepted Solution

by:
mightyone earned 2000 total points
ID: 16420512
use a rule in your mail client moving mails containing ALERT to different folder, depending on your mail ckient you could also directly forward to one of the sms providers
0
 
LVL 2

Author Comment

by:jculkincys
ID: 16420552
That a great simple answer

I was looking to learn more about bash commands but if it can be accomplished without it then I can learn some other way.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

578 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