• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send unix commands using java Appln

 
prashant g
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello techies,
I'm trying to write a Java Program which connects to UNIX m/c (like telnet) and sends general UNIX commands. I opened a socket to UNIX m/c and read the inputstream. But what I'm getting is all junk characters. Pls help.
Thanks,
Prashant
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your name "prashant g" does not comply with the JavaRanch naming policy. Please spare a moment and re-register with a name that meets the requirements.
Thanks!
 
Rehan Malik
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're attempting to write a telnet type application in Java for Unix, then you have to follow the Telnet RPC. I remember reading a while back that there's a few things that you have to do in order to authenticate you to the server and as well as sending/receiving commands.
Try looking on www.google.com on the telnet RPC

Originally posted by prashant g:
Hello techies,
I'm trying to write a Java Program which connects to UNIX m/c (like telnet) and sends general UNIX commands. I opened a socket to UNIX m/c and read the inputstream. But what I'm getting is all junk characters. Pls help.
Thanks,
Prashant

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!