Solved

You have mail Wav.

Posted on 1998-01-14
10
328 Views
Last Modified: 2008-02-01
I would like to setup a "You have Mail" wav file so when a user logs into the server and if they have mail it will play the wav over their speakers. Or put a window up on their system. Which ever way would be easier.

Is there an easy way to do this.

Thanks
Bob Ross
0
Comment
Question by:bross073097
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 1635379
in /etc/.profile:

if [ -s /var/spool/mail/$user ] ; then
   echo You have mail.
   your_wv_playing_program your.wav
fi

Similar in /etc/csh.login, or whatever your user shell's startup file is.
0
 

Author Comment

by:bross073097
ID: 1635380
They log in with PAP, I'm not sure which login shell is used.

I will try the above and let you know.

Thanks for the quick response.

Bob Ross

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1635381
login shell is specified in /etc/passwd
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:bross073097
ID: 1635382
It's not mentioned there, it is in mgetty.config, it shows bin/login

Thanks
Bob Ross

0
 

Author Comment

by:bross073097
ID: 1635383
You mention your_wv_playing_program.

I'm not sure what to put here. In an html, I just tell it to play a wave and it does. This will play on the user end after they get connected if it does.

Thanks
Bob

0
 

Author Comment

by:bross073097
ID: 1635384
mgetty uses it's own login, I found login.c. My system is set for AutoPPP, the password file does not give a shell unless I give a shell account /bin/bash, all other users get /dev/null so they can't log in at the prompt.

I can send it to you if you want.

Thanks
Bob Ross
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1635385
Send it (email), it's nice to see other/new configurations :-)

You may find  your_wv_playing_program  in your servers mime.types configuration file.
Or search with:
  find / -xdev -perm +x -name '*wav*' -print

Ciao
Achim   hoagascht@gmx.net
0
 

Author Comment

by:bross073097
ID: 1635386
The mime.types show

audio/x-wav            wav

That's it.

Bob

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1635387
mime.types was useless, sorry.

On my system the programs are named  play  and  x-play
0
 

Author Comment

by:bross073097
ID: 1635388
Any other Idea to make this work?.

Thanks
Bob Ross

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

617 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