Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

How to send unix commands using java Appln

 
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
 
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!
 
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


 
I am Arthur, King of the Britons. And this is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!