<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This is what I use for telnetd and the shell in 4.9:<div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> <span style="color: #aa0d91">void</span> rtemsShell(</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> <span style="color: #aa0d91">char</span> *pty_name,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> <span style="color: #aa0d91">void</span> *cmd_arg</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> )</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> rtems_shell_main_loop( <span style="color: #aa0d91">NULL</span> ); </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> }</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(100, 56, 32); "><span style="color: #000000"> </span>#define SHELL_ENTRY rtemsShell</div><div><font class="Apple-style-span" color="#643820" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><font class="Apple-style-span" color="#643820" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><font class="Apple-style-span" color="#643820" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> <span style="color: #007400">/*</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 116, 0); "> ** Starting the telnetd server</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 116, 0); "> */</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(100, 56, 32); "><span class="Apple-style-span" style="color: rgb(196, 26, 22); "><span style="color: #000000"> printf(</span>"Starting the telnetd Server.\n"<span style="color: #000000">);</span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> rtems_telnetd_initialize(</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> SHELL_ENTRY, <span style="color: #007400">/* "shell" function */</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 116, 0); "><span style="color: #000000"> </span><span style="color: #aa0d91">NULL</span><span style="color: #000000">, </span>/* no context necessary for echoShell */</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> <span style="color: #aa0d91">FALSE</span>, <span style="color: #007400">/* spawn a new thread */</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> RTEMS_MINIMUM_STACK_SIZE * <span style="color: #1c00cf">20</span>, <span style="color: #007400">/* shell needs a large stack */</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 116, 0); "><span style="color: #000000"> </span><span style="color: #1c00cf">1</span><span style="color: #000000">, </span>/* priority .. we feel important today */</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> <span style="color: #1c00cf">0</span> <span style="color: #007400">/* do not ask for password */</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> ); </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(100, 56, 32); "><br></div></span></font></div><div><font class="Apple-style-span" color="#643820" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div>Alan</div><div><br></div><div><br></div><div><font class="Apple-style-span" color="#643820" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><div>On Sep 28, 2008, at 11:21 PM, Gene Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>The shell with telnetd in 4.8 works find. Just have to intialize telnetd <br>in Init() and it goes.<br><br>However, with 4.9 the new improved shell has a documentation hole <br>regarding telnet. The shell manual says it easy to attach the shell to a <br>serial port or telnetd. However, how to do it with telnetd (a socket) <br>says TBD.<br><br>Can someone list the steps needed to get telnetd running with the shell <br>in 4.9.0 ?<br><br>Thanks,<br>-gene<br><br>_______________________________________________<br>rtems-users mailing list<br><a href="mailto:rtems-users@rtems.com">rtems-users@rtems.com</a><br>http://rtems.rtems.org/mailman/listinfo/rtems-users<br></div></blockquote></div><br></div></body></html>