Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Paging software

Posted on 1998-10-07
9
Medium Priority
?
220 Views
Last Modified: 2010-04-20
I need a small piece of software, or script that I can run from a crontab, without superuser access, that will check for new mail and if it finds some page me tell me so.  I do have the alpha paging side setup.
0
Comment
Question by:Hosehead
9 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1638224
Your question didn't tell us how you would like to be notified. Anzway, to just check if there is mail (adjust path to your requires):
   if (-s /var/mail/$user) echo Have mail
or if your system has messages(1):
    messages

If your system has newmail(1):
   newmail
0
 

Author Comment

by:Hosehead
ID: 1638225
I would like to be notified via an e-mail sent to my pager.
hosehead
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1638226
newmail |& mail -s"Have mail" user@pager
0
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 

Author Comment

by:Hosehead
ID: 1638227
I would like to be notified via an e-mail sent to my pager.
hosehead
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1638228
Sorry, I didn't read  man newmail  carefully.
But if you can get the source of newmail, it should be easy to change the command it executes when detecting new mails.
0
 
LVL 11

Expert Comment

by:RoadWarrior
ID: 1638229
I have a solution that will run with java and X.
0
 

Author Comment

by:Hosehead
ID: 1638230
I need this program to run on a machine where I am just a simple little user.  I want it to send e-mail to my alpha pager telling me that I have new mail.  It would be nice to have it list who sent the e-mail also...
0
 

Expert Comment

by:somberlain
ID: 1638231
fetchmail supports mail fetching/checking.  You don't need to run it from crontab, it can be run as a daemon w/ the -d command at any time interval you specify (daemon mode is disabled if you use "check").  usually I do fetchmail -d 800 (to check every 800 seconds).   Once you have that going you need a biff-type program that will send mail to your alpha pager.  something like newmaild might work for you. its nfo states:
                   
  This is a VERY small program which uses BSD sockets to send an e-mail  to another account whenever an account gets mail. It is useful for folks  who have a secondary (or tertiary) account that gets much less mail than  their primary account and who don't wish to use a .forward for whatever  reason. It could also prove useful for those who are (as I was in writing it)  looking to learn a bit about socket programming.

If you want it go get it at freshmeat.net: http://appindex.freshmeat.net/view/897737078/
his homepage is at: http://www.ccil.org/~wcb/
when you need programs in the future I recommend you go check out their appindex 'cause almost any new linux program gets a mention there.  in the appindex eMail section there is more email apps that may fit your bill as well.

so by using fetchmail and newmaild (or another biff-type app) you can have mail brought into your machine and then be notified of it.  then you can telnet or dialup to your linux box and get your mail.

anyway, hope that helps.  

I don't post answers 'till I know I give the solution, so if this is it I'll repost as an answer.
0
 

Accepted Solution

by:
dreamler earned 200 total points
ID: 1638232
if it's possible to send email to pager@company.email(
or something like that)
with subject == Your pager number , then this
simple .procmail file could help:

:0
* < 1501 # Max size of message that my pager hadles normaly
* !^X-Loop: your@elmail.addr # to get it back ;)
| (formail -r -k -A"Subject: pagernumber" \
      -A"X-Loop: your@email.addr" -u"Subject: "; \
      ) | $SENDMAIL -t pager@company.mail

---------------------------


0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

927 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