Forums Register Login

How to send unix commands using java Appln

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
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


Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1355 times.
Similar Threads
CREATORS ADMIT UNIX, C HOAX
running unix 'su 'cmd from java
JAVA OR C#
problem while migrating batch scripts to Shell scripts
How to send commands to UNIX m/c using java apl
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:28:43.