?
Solved

Sending windows messenger messages on linux

Posted on 2003-11-15
7
Medium Priority
?
273 Views
Last Modified: 2010-03-18
Hello,

Is there anyway that I could automatically send a message to all of the computers on the network usign the windows messenger service(not M$N Messenger) from my red hat 9.0 server.

I would like to beable to make it so when the server restarts a message is sent.

- Robbert
0
Comment
Question by:rrijkse
[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
  • 4
  • 3
7 Comments
 

Expert Comment

by:ThisIsMyName
ID: 9930721
cat yourMessage.txt | smbclient -M [host]

where [host] is either a machine name or a user name.

If you have a list of hosts, you could make a simple script to message them all

#! /usr/bin/perl -w
open (IN,"listOfHosts.txt");
while (<IN>){
    chomp;
    system ("cat yourMessage.txt | smbclient -M $_");
}
close IN;

Note that messaging to users (rather than hosts) can be problematic if a user is signed on at more than one computer.
0
 

Author Comment

by:rrijkse
ID: 9933415
Thanks, that worked like a charm
0
 

Author Comment

by:rrijkse
ID: 9933433
I have one question, how would I make it so that that script runs when the redhat box is restarted?

If you can help me with that, i'll give you 100 points

- Robbert
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:ThisIsMyName
ID: 9934098
you can call the script from /etc/rc.d/rc.local and it will do it's thing on startup... Hope that helps!
0
 

Author Comment

by:rrijkse
ID: 9934437
I need the server to send out a message, when the server is going to be down for a restart or shutdown.

I made a message saying: "The server will be down for the next few minutes." and I want that to be send to all of the computers on the network.

- Robbert
0
 

Accepted Solution

by:
ThisIsMyName earned 200 total points
ID: 9941643
Ah.. ok. I thought you wanted to send out messages after the restart (which seemed a bit odd).

Look at your /etc/rc6.d/ directory.. you'll see entries like this


K05atd
K05keytable
K05saslauthd
K10cups
K10xfs
K15gpm
(etc)

make a symlink (ln -s [original file] [new location]) from your script to a file in this directory. Name it something like Kxxsendmsg. The numbers that you use for "xx" determine when your script will be run. On my system, K07sendmsg would be executed after the system
shuts down saslauthd and before it shuts down cupsd.

The rc6.d directory is used when your system restarts. Add an entry to rc0.d as well if you'd like your system to send out messages when things are halted, too.

Obviously, you want to run your script before things like samba and network are shut down.

Hope that's a bit more helpful :)
0
 

Author Comment

by:rrijkse
ID: 12116994
Sorry about the delay, I completely forgot about this question.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

800 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