public static void main(String[] args) {
   // Create a URLConnection object for a URL
   // remotehost = "zws-nt4";
   // String url =
   // "http://"+remotehost+":80/login.do?username=admin&password=admi&event=authenticate";
   // String upCommand= "c:\\zws\\bin\\uptime\\bring-zws-up.bat";
   // String downCommand = "c:\\zws\\bin\\uptime\\bring-zws-down.bat";
   {
   } // System.out.println("args:" + args.length);
   url = StringUtil.trimQuotes(args[0]);
   remoteHost = StringUtil.trimQuotes(args[1]);
   downCommand = StringUtil.trimQuotes(args[2]);
   upCommand = StringUtil.trimQuotes(args[3]);
   smtpHost = StringUtil.trimQuotes(args[4]);
   String recipients = StringUtil.trimQuotes(args[5]);
   mailTo = EMail.parseAddresses(recipients);
   String d = smtpHost;
   while (d.indexOf('.') != d.lastIndexOf('.')) d = d.substring(d.indexOf('.') + 1);
   FROM += d;
   {
   } // System.out.println(args[0]);
   {
   } // System.out.println(args[1]);
   {
   } // System.out.println(args[2]);
   {
   } // System.out.println(args[3]);
   {
   } // System.out.println(args[4]);
   {
   } // System.out.println(args[5]);
   {
   } // System.out.println("________________________________________________________________________________");
   {
   } // System.out.println(" ");
   {
   } // System.out.println("Zero Wait-State HTTP Uptime monitor started");
   {
   } // System.out.println("________________________________________________________________________________");
   {
   } // System.out.println("URL: " + url);
   {
   } // System.out.println("remote host:" + remoteHost);
   {
   } // System.out.println("local down command:" + downCommand + " " + remoteHost);
   {
   } // System.out.println("local up command:" + upCommand+ " " + remoteHost);
   {
   } // System.out.println("smtp host:" + smtpHost);
   {
   } // System.out.println("mail recipients:" + recipients);
   {
   } // System.out.println("================================================================================");
   monitor();
 }