From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/220 Path: main.gmane.org!not-for-mail From: "Uffe Jakobsen" Newsgroups: gmane.comp.sysutils.supervision.general Subject: How to make a "telnetd" using tcpsvd and bash ? Date: Mon, 11 Aug 2003 16:16:17 +0200 Message-ID: <023d01c36013$26065460$1b1e15ac@pcb0087> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1060611474 23268 80.91.224.253 (11 Aug 2003 14:17:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2003 14:17:54 +0000 (UTC) Original-X-From: supervision-return-458-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Aug 11 16:17:53 2003 Return-path: Original-Received: from antah.skarnet.org ([212.43.221.114]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19mDUf-0005b8-00 for ; Mon, 11 Aug 2003 16:17:53 +0200 Original-Received: (qmail 22092 invoked by uid 76); 11 Aug 2003 14:18:11 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 22086 invoked from network); 11 Aug 2003 14:18:10 -0000 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: main.gmane.org gmane.comp.sysutils.supervision.general:220 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:220 Hi, During the preparation of some material that should try to explain my collegues about the wonderful world of easy daemon-making using either "runit/ipsvd" or "daemontools/ucspi-tcp" I wanted to make a "sample telnetd" using runsv, tcpsvd and bash... That sounds easy and I have it almost working, except that all of my typing on the terminal goes into the log instead of going back to the termainal the same goes for the "prompt" showing working-dir and username... Below is my run script for runsv: #!/bin/sh exec 2>&1 exec tcpsvd -v -vv -l demohost 0.0.0.0 2323 fixcrio /usr/bin/bash --login --noprofile --norc -i # EOF As stated before the above works fine except that I can't see my own typing or error msgs - only the output of the command is correctly returned to my "client"... I believe that I've tried every redirection combination in the world - but with no result. I'm currently working on a Sun (UltraSPARC II) Solaris 8 platform. Any help and suggestions is much appreciated. Kind regards Uffe Jakobsen