Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: cioby23 on November 28, 2013, 04:21:37 PM

Title: Autorun telnet
Post by: cioby23 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,
Title: Re: Autorun telnet
Post by: tinypoodle 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.
Title: Re: Autorun telnet
Post by: cioby23 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