Solved

You have mail Wav.

Posted on 1998-01-14
10
317 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 …
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

738 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