远程连接到机器并执行某些命令. [英] remotely connecting to the machine and executing certain commands.

查看:102
本文介绍了远程连接到机器并执行某些命令.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想编写一个独立的Java程序,它实际上可以远程连接到计算机并必须执行某些命令(例如系统命令)或安装soem服务...我是新手...任何帮助将不胜感激或对它的任何见解都会对我有很大帮助.……谢谢..

Hi,
I wanted to write a standalone java program,which can actually remotely get connected to the machine and has to execute certain commands,(say system commands)or install soem services...I am a newbie...any help would be greatly appreciated and or any insight to it would help me a lot...thanks in advance..

推荐答案

不,您不能. Java应用程序在JVM下运行,因此您不能仅连接到某人的PC并执行某些命令.但是您可以使应用程序能够接收连接并执行一些命令.
请告诉我们您要达到的目标,以便我们提出正确的建议.
No, you can''t. Java applications run under JVM, so you cannot just connect to someone''s PC and execute certain commands. But you can make an application that receive connection and execute some command.
Please tell us what you are trying to achieve, so that we can give the right suggestion.


这篇关于远程连接到机器并执行某些命令.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆