WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Autorun telnet  (Read 2171 times)

Offline cioby23

  • Newbie
  • *
  • Posts: 2
Autorun telnet
« on: November 28, 2013, 04:21:37 PM »
Hello,

I have installed a core Linux 4.7.7 clean instance and I have some script which load at startup and listen on port 6000.
How do I get to automatically telnet to port 6000 after automatic login.
I tried to put the command telnet localhost 6000 in /home/tc.profile at the end of the file but it didn't work. After reboot it gave me a connection refused message but if I run it manually it works fine

Thanks,

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Autorun telnet
« Reply #1 on: November 28, 2013, 05:12:49 PM »
Maybe you should be more detailed about what you are exactly trying to achieve, telnet is typically used interactively.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline cioby23

  • Newbie
  • *
  • Posts: 2
Re: Autorun telnet
« Reply #2 on: November 29, 2013, 06:56:11 AM »
I needed to run automatically telnet localhost 6000 after login to Core linux.
I have managed to solve this issue.
I have put initially the  telnet localhost 6000 line inside the .profile script but the line initially ran earlier before the application which listens to port 6000 managed to load.
So i have added an delay of 10 seconds (sleep 10) before it and now it runs great.

Thanks for your help anyway