need to execute commands on windows machine from remote server

1,266 views
Skip to first unread message

sathya

unread,
Oct 19, 2009, 2:21:03 AM10/19/09
to Google Web Toolkit, ianba...@gmail.com
I need to execute commands on windows machine (eg: c:\program files
\outlook.exe) using java program. However java program will be running
on remote server(tomcat server on other machine).

So my job is to connect to windows machine from server and execute
commads on client.

Can you help in implementing this using java program?

I believe I can do this using SSh or using https connection from
server to windows machine. However I am not sure which the best method
to do this is. Also I would like to know if they are any other methods
to implement this.

Thanks,
Sathya.

gwtfanb0y

unread,
Oct 19, 2009, 4:00:00 AM10/19/09
to Google Web Toolkit
I dont exactly understand what you want. Do you want to execute a
command
on the client-side (the browser) or on the server-side (input coming
from the client) ?

sathya

unread,
Oct 21, 2009, 10:53:04 PM10/21/09
to Google Web Toolkit
I need to execute command on client side.I have all clients username
and passwords.So I need to login to client machine (windows) and
execute commands
> > Sathya.- Hide quoted text -
>
> - Show quoted text -

Lazo Apostolovski

unread,
Oct 22, 2009, 8:45:46 AM10/22/09
to google-we...@googlegroups.com
If I understand correct. You want to use GWT to start program on the
client side when you send some event from server side.
GWT Code is compiled to JavaScript. JavaScript is executed by the
browser so browser security police don't give permition the code from
javascript to be executed out of box (out of browser environment). So
you can call even "cd c:\user" command on the client machine.

The answer on your question is NO.

Lazo Apostolovski

unread,
Oct 22, 2009, 8:50:48 AM10/22/09
to google-we...@googlegroups.com
Appendix:
Fix on my message before I mean You can't call even "cd c:\user" on the
client computer. You cant use GWT to remote access files or remote call
any dos or other command on the client computer.
:)

Greetings!

sathya

unread,
Oct 26, 2009, 2:33:56 AM10/26/09
to Google Web Toolkit

is there any procedure to remote access files or remote call any dos
or other command on the client computer ?
Also I need the respone back after executing cmd.

It is not specific to GWT.
I just wanted to know is there any procedure to do this in JAVA.

QBox

unread,
Oct 26, 2009, 2:34:16 PM10/26/09
to google-we...@googlegroups.com
If you use JAVA application and run that application on the client command you can execute dos commands. This is a GWT mail list so I cant help you. Just write on google.com "execute cmd commands JAVA" and you will see the solution ;)

sathya

unread,
Oct 26, 2009, 11:43:55 PM10/26/09
to Google Web Toolkit
I have client machines on which I need to automatically start xyz.exe
application and monitor this. I need to automatically login into
client system and invoke xyz.exe application with known username and
passwords.
> > > Greetings!- Hide quoted text -

Yozons Support on Gmail

unread,
Oct 27, 2009, 11:58:27 AM10/27/09
to google-we...@googlegroups.com
I suspect you'll need a plug-in of some sort as what you suggest would scare the heck out of most people who use a browser, that your server could somehow launch a program on my computer and then "monitor" it.  For the browser, the code is mostly limited to javascript or to a plug-in since it would be odd to have any such capability be present otherwise (it would be a huge security hole).
Reply all
Reply to author
Forward
0 new messages