Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to send unix commands to putty by using Process & RunTime Class in java

843810Aug 1 2010 — edited Aug 2 2010
Hi,
I was searching this type of topic from the last 2 weeks. But i did not get any solution for this. I want to automate putty by java. I know by Process and Runtime class we can execute any exe's and any applications one time . But how to send unix commands to putty sequentially for executing batch jobs by using java?

Do we have any free libraries for writing java program's to execute unix batch jobs from windows? If you have please provide me the sample codes and URL to download
.
Your help would be highly appreciated. Thanks in Advance.

Regards,
Anantharajan.

Comments

843810
Can any one please help me?


Regards,
Anantharajan P.
843810
Using Runtime.exec you can execute native commands, but here the problem is to interact with Putty, once that is know, then it can be put into some programming language. I'm not sure whether this can be done using Java, but first you must check some Putty forums, which might give you better ideas.
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 30 2010
Added on Aug 1 2010
2 comments
684 views