Marvin Legend wrote:
...
srinu pearl wrote:This is a interview question. I tried using pattern, it worked fast. But I am just able to search the word, but not able to print the line when match found.
int line = 0;
Pattern pattern = Pattern.compile("invalid holding");
txtscan = new Scanner(new File("C://logs/LM.2014-02-14.log"));
while (txtscan.findWithinHorizon(pattern,0) != null) {
System.out.println(line);
line++;
}
Originally posted by loganathan sadish:
Thanks Nguyen,
But i need some detail explanation about the host and the port.
Host means my windows machine ip or DB2 server ip? and how to find the port?
Thanks
...
But my query is ,could there be any way to directly hit shutdown,to remote
machine, through our program. (may be throuh rmi ,but i don't have any idea about).
Originally posted by vasu chowdary:
I have four computers with LAN connection.how can i shutdown three computers using single computer.is this happen with java.net package?
Originally posted by steve labar:
...
1 Subject EMAILADDRESS=noc@console02.wh.prod, CN=console02.wh.prod, OU=Network Operations, O="Whitey, Inc.", L=Santa Clara, ST=California, C=US
Issuer EMAILADDRESS=noc@whitey.com, CN=Whitey CA, OU=Certificate Authority, O="Whity, Inc.", L=Santa Clara, ST=California, C=CA
...
Error connecting: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching console.whitey.com found