Sending a signal from Unix to Windows

Hi all,

I was wondering if anyone could help me here.

I have got a Unix Server (Solaris 8) which we access over the network from a Windows NT machine using Exceed. The Unix box has Samba installed so it is very easy to send a signal from Windows to UNIX by simply creating a dummy file which a script on the UNIX side is continually searching for (ie see the string "Automatically executing a command").

However I have absolutely no idea how I can send a signal from UNIX to Windows.

Ultimately, I would like a Windows C++ program to execute a command when a program in UNIX finishes what it is doing and sends a signal to Windows. Does anyone have any suggestions?

Thinking off the top of my head, could it be possible to somehow ping the Windows computer from UNIX with some predefined bit of data. The Windows C++ program could then be listening out for this bit of data and once it finds it, this will be the signal. If this is possible, how exactly could I set this up?

One easy way of setting this up would be for the Windows program to continually search for a dummy file on the UNIX drive. However, since we access the UNIX box via a network, I don't want to utilise unnecessary network bandwidth otherwise I might get in trouble!

Cheers

Robbie

Please make sure that you have read our rules. And note:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

I will close the duplicate thread.

if you're already mapping to the unix drive through samba, reading that drive every second will not increase the load on the network where anybody will notice that much of a difference ... (unless you have a very extremely delicate network which means using samba may not be recommended for it) ... besides, a ping program still affects the network ...

take the easy way out and look for the dummy file on the unix drive ...

Thanks for your suggestion. You're probably right about this method using little network bandwidth however I am still a bit hesititant. Also, I think there might be a problem with update latency over the network.

I could ping the Windows computer from within UNIX and then somehow detect the ping from the Windows C++ program.

Has anyone got any simple suggestions how a Windows C++ program could detect a ping from a pre-defined IP address?

(ps sorry for replicating the post - I should have read the rules beforehand)