Jump to content

Java Telnet Linux Problem

- - - - -

  • Please log in to reply
No replies to this topic

#1
reachpradeep

reachpradeep

    Learning Programmer

  • Members
  • PipPipPip
  • 41 posts
Hello,

I am trying to write a telnet client in java to connect to a telnet server. both the client and server run on different linux os's.
513
I am trying to perform some automations by the java program connecting to the telnet server and send some commands at client bootup.

If I run the java program manually from the command line by typing java myProgram. It works and the commands are sent fine to the telnet server.

However, I have it run at boot up by calling it from an rc.local file. When the computer boots up, the programs executes without crashing. However, the commands are not sent to the telnet server properly. The telnet server returns a bunch of "65533" codes and ignores the clients commands

Anyone have any idea what those could be? Any relation that it is because no one is logged in when the command is run? When the command is placed in the .bash_profile, it works fine. However, I want it run at bootup and not login.

And I don't want to use the telnet wrapper classes out there.

Thanks. Any help is appreciated.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users