Sending a signal from Unix to Windows


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sending a signal from Unix to Windows
# 1  
Old 04-07-2005
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
# 2  
Old 04-07-2005
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.
# 3  
Old 04-07-2005
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 ...
# 4  
Old 04-07-2005
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)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

UNIX signal problem

Hi all, Sorry about the title,at first i decided to ask a problem about the signal mechanism,however,i'm now figured it out.Sorry to forget modify the title:wall:.I had a small problem that if i use the code which is commented,the code would get a segment fault,while the above code NOT.what's... (4 Replies)
Discussion started by: homeboy
4 Replies

2. Shell Programming and Scripting

Perl: Sending file from UNIX server to Windows server

I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box. The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused. The error message that always pops... (2 Replies)
Discussion started by: kooshi
2 Replies

3. Solaris

Signal Processing in unix

I've read the man page of singal(3) but I still can't quite understand what is the difference between SIGINT, SIGALRM and SIGTERM. Can someone tell me what is the behavioral difference among these 3 signals in kill command? Thanks! (2 Replies)
Discussion started by: joe228
2 Replies

4. Shell Programming and Scripting

How to detect SIGTERM,SIGKILL signal in UNIX

Dear All We have JBOSS server running on Linux we need to track Graceful Shutdown(SIGTERM) and Forceful Shutdown(SIGKILL) timestamp and write it into one file, I am new to UNIX Signal processing if is it possible how to detect it? We generally do $kill PID For Graceful... (5 Replies)
Discussion started by: mnmonu
5 Replies

5. UNIX for Dummies Questions & Answers

Sending signal from child to parent process!

Hi All, I facing a problem in handling signals between parent process communication. I am trying to send a signal(SIGINT) from child to parent. I am using kill function to do so and I am trying to read the signal using sigaction(). But the program is ending abruptly and I am not able to figure out... (4 Replies)
Discussion started by: vkn_1985
4 Replies

6. Linux

does sending a signal cause task switching

Hi all, i am porting a system, that used to manipulate memory across processes using an interrupt handler - which means that upon return from the interrupt handler the memory change would be finished. I am trying to simulate this using signals on Linux 2.6.2x. What i would like to know is... (1 Reply)
Discussion started by: pfarre
1 Replies

7. Windows & DOS: Issues & Discussions

ssh: sending password from windows client

Hi. My workstation is Windows. I use putty to connect to unix servers. The problem is that i'm doing it many times a day and each time i need to supply password. I have no control on ssh configuration on servers, because of account restrictions. So i can't use key authentication, how is suggested... (4 Replies)
Discussion started by: kukuruku
4 Replies

8. UNIX for Advanced & Expert Users

Help required regarding Unix Signal

It is required to trap the signal send to a daemon process before rebooting a unix server. Suppose a script abc.ksh is running in the server as daemon. Before rebooting the server, the unix admin kills all the daemon processes. It is not known to me how admin kills the processes; I mean by which... (9 Replies)
Discussion started by: k_bijitesh
9 Replies

9. Shell Programming and Scripting

sending mail using perl through windows

Hi all this is the code which i tried executing in windows environment to send a test mail. # Perl script to send mail on deliver complete. package SendMail; use Config; use Mail::Send; @ISA = qw(Mail::Send); sub open { my $me = shift; my $how; # How to send mail my $notused; my... (13 Replies)
Discussion started by: victorvvk
13 Replies

10. Programming

sigwait system call in UNIX signal

Hi Everybody, I have gone through man of sigwait and new to UNIX signals. Could anyone explain me about the following lines mentioned in sigwait man help ? "The selection of a signal in set is independent of the signal mask of the calling thread or LWP. This means a thread or LWP can ... (1 Reply)
Discussion started by: md7ahuja
1 Replies
Login or Register to Ask a Question