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.

how to exceute shell scripts in unix server(telnet) from java application which is on windows?

Thread view: 
vinay - 28 Jul 2006 08:03 GMT
Thanx for your valuable information. But i dont have much knowedge
regarding struts.
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.
Vincent van Beveren - 28 Jul 2006 12:09 GMT
> Thanx for your valuable information. But i dont have much knowedge
> regarding struts.
[quoted text clipped - 3 lines]
> please help me how to write with a sample code. I have to connect to
> telent (unix). Please help me in this issue.

You could just Runtime.exec("telnet {ip} {port} <script") at which
script is dynamically generated. You also have free telnet libraries for
java, which you can use.

Vincent
Dražen Gemić - 28 Jul 2006 21:46 GMT
> Thanx for your valuable information. But i dont have much knowedge
> regarding struts.
[quoted text clipped - 5 lines]
> thanks and regards,
> vinay.

I have never tried that, but it could be possible. The fact is that
you are not going to find a lot of hosts with telnet enabled theese days.

Mybe the better idea is to execute them as a CGI scripts, using web
server, and connecting to it from Java.

DG


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.