On Mon, 08 Mar 1999 00:39:52 +0000, Context Grey wrote:

>Hello,
>
>this is definitely off topic, but I'm hoping someone here
>might have some relevant experience.  
>  (I'm not sure where the best place to post this is, 
>or how to best phrase it even...the Java-linux readers
>are intelligent and speak language that I understand at least)
>
>I'd like to use a java RMI "daemon" as a process launcher for
>a farm of Linux and NT machines.  In other words, I somehow run a 
>java master process on each machine and can then, using RMI, 
>tell this process to run commands on that box.  
>
>Under Linux I can simply "rsh" from one master machine to start the
>Daemon
>on each machine.
>
>My question: is there any way to start a java program on NT
>either remotely, or automatically (e.g. is there an autoexec.bat
>script that can be used to start it??)

Well, depends on the program.  If it does not interact with the
display or console then you can use the NT Resource Key tool
that lets you run any program as a service and have it auto-started
when NT boots.

If it does have interactions with the display (ANY AWT or required STDIO)
then the best you can do is put it into the startup folder in the
start menu of a user and it will run when that user logs in.

>More background: - there are a lot of machines, logging on to
>each one to start the process will be tedious.
>- My background is Java & some Unix, I don't know NT at all
>and am using Java to mostly isolate the application from the
>platform difference.  (The RMI process server thing
>seems to work OK under NT once I get it launched...)

See the NT Resource Kit.  It has been a while but I think the tool
is called "srvany.exe" and it takes as options the thing to run.
Make that "java.exe classname options ..." with correct paths and
settings for the starting directory and it will work.  I have run
some of our servers (for NextBus) on NT that way about a year ago
to show it could be done - but I tend to want more remote admin than
NT provides so I tend to stay with UNIX systems.)


Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to