|
I'm writing a desktop java app on that I want to connect to a MySQL database on a server. Here is the code to do that:
import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; private static ...
Started by Rosarch on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Try telnetting -
telnet <IP-OF-domainName.com> <PortNumber>
You'll.
Timeout after a while.
|
|
Hello,
Does anyone know of an easy way to create a script that can connect to a telnet server, do some common telnety stuff, and then logoff? I am dealing with users who are not familiar with telnet and the commands they will need to run. All I want is...
Started by SpaceRook on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
EDIT: The above page suggests that the Wikipedia Expect entry is a useful resource :-)
I've used various methods for scripting telnet, with their output piped into telnet....
Not a TCL fan, there are Expect modules for Perl/Python/Java.
|
|
Process P = Runtime.getRuntime().exec("cmd /c start telnet"); System.out.println("done running .."); OutputStream output = P.getOutputStream(); BufferedOutputStream out = new BufferedOutputStream(output); String S = "open\n"; byte[] BS = S.getBytes();...
Started by Akash on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Make sure you typed the ....
You really need to hook up all three (output, input are coming out of your input stream (or telnet's output), you'll want to go with reading only 'telnet'.
Or error response) from the telnet application.
|
Ask your Facebook Friends
|
I am writing a back end program that telnets into a server, runs some commands and saves all the output from those commands. Something just like Expect.
I would like to use an open source solution that is well supported and runs with JDK 6.
I have found...
Started by Ben on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Try these:
http/blog/2007/12/22/java-writing-an-automated....
Have you looked at the Sadun utils library ? I used it once to open a telnet session to a server http://www.java2s.com/Code/Java/Network-Protocol/ExampleofuseofTelnetClient.htm .
|
|
I'd like to be able to set the terminal-speed option explicitly in a native Linux GNU telnet client.
Some context to my problem:
I'm unable to login to an HPUX host using telnet when the telnet process is created by a Java program .
When I telnet to the...
Started by abunetta on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Maybe....
It sounds like it's it's own client to try using a native Java telnet API mentioned by another poster instead of spawning an external of a telnet client.
You'll need to give more info about the java telnet client.
|
|
Hello ,
If telnet is disabled on my RHL server memcached gives the error of unable to connect to host: myMachine:port number when starting my java web app.
Is it mandatory to enable telnet for memcached to work? For security purpose if it has been disabled...
Answer Snippets (Read the full thread at serverfault):
Maybe the code is using telnet to check if the service.
It uses TCP port 11211 by default, so make you you accept connections to this port in your firewall .
Memcached has nothing to do with telnet.
|
|
What I'd like to do is provide a link on an intranet web page that will launch a telnet session and pass context information to a shell script that will take the user to a specific "green screen."
This "pseudolink" might help show what I'm looking for...
Started by Ross Morrissey on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You cannot do this ....
Of them in the browser.
There are some java applets which can be used as telnet clients, you could use one solutions like a java applet, but I doubt they are called with a telnet: URL.
Or something.
|
|
Well I know for OpenVMS you can get accounts by telnetting to places
like deathrow.vistech.net. Can you do the same with CP\M?
ps:sorry I know I wasnt verry specific but I am in a rush.
Started by nolanh@ymail.com on
, 7 posts
by 3 people.
Answer Snippets (Read the full thread at omgili):
Actually the mounted....
If you but C++ and Java.
On Tue, 07 Oct 2008 08:13:08 +0200, Udo Munk <umunk@unix4fun.org
You can telnet to a MP/M Munk <umunk@unix4fun.org
You don't need an account, just telnet to port 4050 or 4051.
|
|
I know how to put a Website within a Xenforo page, but is there a way to put a Telnet within a page?
Started by Ablac on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at xenforo):
You could check out SO: http://stackoverflow.com/questions/3445185/embed-telnet.
You need to insert the HTML for the applet into the template for the page node .
Presumably that would be a java applet.
|
|
I would like to add the ability for users to telnet into my app where by they can type in commands etc. I would like a simple Java Telnet server whereby i can provide the authentication strategy.
Started by mP on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
"Target Audience: Developers that want to integrate reasonable telnet access into their application."
In my experience, telnet is telnet....
You might find http://telnetd.sourceforge.net/ suitable.
Telnet servers only do telnet.
|