views:

60

answers:

5

Hi, I googled and searched for information regarding the title but most of them couldn't help much. I need your advise. Is this possible or is there any other way to do this?

FYI, the server is running on Unix OS and clients are all running on Windows OS.

Thanks in advance! I really appreciate your precious advise.

A: 

Try using applet.

org.life.java
Try reading documentation. Applet and SANDBOXES.
TomTom
@TomTom Try reading more documentation. Signed Applets can do almost anything: http://download.oracle.com/javase/tutorial/deployment/applet/security.html
seanizer
A: 

Depends on the client / server relationship you're dealing with. An applet / ActiveX control might help if we're talking web server -> browser client, but without more information it's hard to be more definite.

Ben Poole
+4  A: 

All the crackers and spammers on the globe want to know the same thing :-)

The most simple solution is to write a small command server and install that on all Windows clients. The command server should wait for connections from the main server, save the commands in a batch file and execute them. That should be just a couple of lines of code in any modern language.

If you want something bottled, you can try rexec by MKS. Just be aware of the security risks.

If you want to do this without installing anything on the Windows client, Google for malware sites or talk to someone with connections to organized crime.

Aaron Digulla
+1. For reading my mind.
gnucom
+1 for the 1st and last sentences :-)
seanizer
A: 

We have actually done this before using traditional batch files (.BAT). It works like so:

  • The user clicks a link;
  • The server dynamically generates a .BAT (batch) file;
  • The user is prompted to save or execute the .BAT file;
  • If they select to execute, the .BAT file is executed on the local machine with the users permissions.

We were surprised this actually worked. More scay yet, with a registry key change, we could also suppress the save / execute dialog provided the site was added into the Intranet zone on Internet Explorer.

Agreed with above posters that there are better alternatives. Was just describing this solution as you specifically asked for a batch file :)

A: 

If you are running a Samba server on your UNIX host where the clients login too you get plenty of opportunities to runs jobs on your clients.

Alternatively there are plenty of distributed job services available (see the list at http://en.wikipedia.org/wiki/Job_scheduler). An open source multi platform one is for example : http://www.sos-berlin.com/modules/cjaycontent/index.php?id=osource_scheduler_introduction_en.htm

But if you want a solution in this direction, you may better ask again in Serverfault.

Peter Tillemans