import java.io.IOException; import java.util.Timer; import java.util.TimerTask; import em; import msglog; /** * Linus Sphinx's pickle barrel network monitor */ public class emonster { Timer timer; public emonster() { timer = new Timer(); timer.schedule( new em(), 0, 300000 ); // sec x 1000 } public static void main( String args[] ) throws IOException { msglog mlog = new msglog(); mlog.setDefaultLogFile( "/opt/emsweb/emonster/log/em.log" ); mlog.write( "EMONSTER firing up..."); new emonster(); // I've created an E*Monster!!! mlog.write( "Initialization complete."); } }