Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Sample code for "calling Unix Script(telnet) from Java Application on windows

Thread view: 
vinay - 27 Jul 2006 16:38 GMT
Hi,
I am vinay. I am new to this group. I want to co execute a unix
script(telnet) from my java application. I dont know how to connect and
also what to use? So please help me to solve this issue with a sample
code. It will be a great help for me. My email Id is
vinayreddy_sanagala@yahoo.co.in and svinay456@gmail.com

Thanks and regards,
vinay
lordy - 27 Jul 2006 17:04 GMT
> Hi,
>  I am vinay. I am new to this group. I want to co execute a unix
> script(telnet) from my java application. I dont know how to connect and
> also what to use? So please help me to solve this issue with a sample
> code. It will be a great help for me.

If it's as simple as telnet you might be better off writing directly to a
client socket.
Google java client server socket examples

or even Java telnet example etc. etc.

> My email Id is
> vinayreddy_sanagala@yahoo.co.in and svinay456@gmail.com

Now you might get a bit more spam to your inbox posting them here,
and its considered rude to ask for private replies. 1. Others do not
benefit from private replies. 2. It looks like you dont want the effort
of reading the group.

> Thanks and regards,
>  vinay

Lordy
Paul Davis - 27 Jul 2006 17:11 GMT
>  I am vinay. I am new to this group. I want to co execute a unix
> script(telnet) from my java application. I dont know how to connect and
Vinay, take a look at Jakarta Commons Net
http://jakarta.apache.org/commons/net/
The javadocs should be enough to get you started
http://jakarta.apache.org/commons/net/apidocs/org/apache/commons/net/telnet/pack
age-summary.html


Have fun
IchBin - 27 Jul 2006 17:46 GMT
>>  I am vinay. I am new to this group. I want to co execute a unix
>> script(telnet) from my java application. I dont know how to connect and
[quoted text clipped - 4 lines]
>
> Have fun

Also sourceforge and freshmeat.net have telnet apps that you could look
at their source code to get you going.

The Java Telnet Application
http://sourceforge.net/projects/jta

Java Telnet Daemon
http://freshmeat.net/projects/telnetd

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA              http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
vinay - 28 Jul 2006 07:41 GMT
Thanx for your valuable information. I came to know that we can connect
to unix telnet ID and execute the scripts from a java application
(using Runtime.exec()) which is on windows. Is it possible? if it is
please help me how to write with a sample code. I have to connect to
telent (unix). Please help me in this issue.
thanks and regards,
vinay.
> >>  I am vinay. I am new to this group. I want to co execute a unix
> >> script(telnet) from my java application. I dont know how to connect and
[quoted text clipped - 20 lines]
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor,  Regular Guy (1952-)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.