Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java and Kermit scripts

 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can Java interface with Kermit scripts? A co-worker has some Kermit scripts that are used to dial a modem, and wants to know if we can write a Java application that will interface with it. Never dealt with the scripts, Kermit, or anything that he is wanting to do, but I thought I would start my search here.
If anyone knows, what are some resources I could use on how to do this?
Thanks!
Jason
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Runtime.exec(). You can use it to launch a command-prompt window from java, and run commands in it. You can communicate with the command window via Input/Output streams you get from the Process object that represents the command-window.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, thinking we're just going to have a little Java prog that calls the batch file already created that runs the Kermit script. Much easier than I thought, thanks for the help!
Jason
 
Michael Matola
whippersnapper
Ranch Hand
Posts: 1820
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figuring that anything having to do with Java either has a coffee reference or a "j" at the beginning of its name, I did a web search on "jKermit" and turned up this page and
this page.
Don't know if that helps or not, jAson.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once again the voice of reason and logic comes in
I'll check out JKermit tomorrow, been a long day playing catch up and doing jsp.
Thanks Mike!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic