1 8 9 package mx4j.examples.tools.config; 10 11 import java.net.Socket ; 12 13 21 public class ConfigurationShutdown 22 { 23 public static void main(String [] args) throws Exception  24 { 25 String shutdownCommand = "shutdown"; 26 Socket socket = new Socket ("127.0.0.1", 9876); 27 socket.getOutputStream().write(shutdownCommand.getBytes()); 28 socket.close(); 29 } 30 } 31 | Popular Tags |