linux下用wmic监控windows
在linux下安装wmic client for linux包后直接运行wmic -u adminuser%password //host 'select * from win32_operatingsystem'命令后可以获得相应系统信息。
但在java开发中把该命令放进Runtime.getRuntime().exec()中执行则返回Usage:[-?|--help] [--usage] [-d|--debuglevel DEBUGLEVEL] [--debug-stderr]类似的信息。
请问有没有在linux下利用java调用过wmic命令的,希望指点一下,谢谢。