- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unix mail solution where message breaks on scr...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2000 07:43 AM
11-14-2000 07:43 AM
Unix mail solution where message breaks on screen
I would be interested in either a programming solution or any products that might offer the break interface solution.
Thanks in advance for your advise.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2000 07:50 AM
11-14-2000 07:50 AM
Re: Unix mail solution where message breaks on screen
echo message | write user
If the user is logged on more than once, use the who command to determine the name of the terminals and then:
echo message | write user terminal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2000 07:56 AM
11-14-2000 07:56 AM
Re: Unix mail solution where message breaks on screen
If you use email you become reliant on your mail server/process. If your mail setup is mission critical then your ok, if not then its unreliable.
We use a combination, email and popups on peoples X displays;
/usr/local/bin/xdialog -display orion:0 -bg red -fg black -t "************BACKUP FAILED**********" -m " BACKUP FAILED on $HOSTNAME "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2000 07:58 AM
11-14-2000 07:58 AM
Re: Unix mail solution where message breaks on screen
A really trivial solution might be something like this:
send a message to the terminal that operator is logged in as.
1. find out the tty where operator is logged in:
TTY=/dev/`who | grep ops | awk '{ print $2 }'` #where ops is the account
2. EMAIL="The text of the email you want the operators to see..."
echo $EMAIL >> $TTY
3. Voila - you could make it also e-mail the message to their mailbox
with echo $EMAIL | mailx -s "Alert message" ops
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2000 02:06 AM
11-15-2000 02:06 AM
Re: Unix mail solution where message breaks on screen
term=`who -u | grep operator | awk '{print $2}' ( in order to see in which terminal the operators are logged on )
for i in $term
do
echo "WARNING.... " | write operator $i
done
You can also use either :
term=`who -u | grep operator | awk '{print $2}'
echo "WARNING.... " > /dev/$term
or send the warning to the operator imbox ( windows)
echo "warning. "| mailx -s "warning" imbox_address
ciao
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2000 09:46 AM
11-15-2000 09:46 AM
Re: Unix mail solution where message breaks on screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2000 09:47 AM
11-15-2000 09:47 AM
Re: Unix mail solution where message breaks on screen
Example:
wall -g admin <
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2000 11:29 AM
11-15-2000 11:29 AM
Re: Unix mail solution where message breaks on screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2000 11:59 AM
11-15-2000 11:59 AM
Re: Unix mail solution where message breaks on screen
A quick test on one of our workstations suggests this is so. (root can 'write' to a non-privileged user even if he has set 'mesg n')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2000 12:30 PM
11-15-2000 12:30 PM