supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Uffe Jakobsen" <uffe@uffe.org>
Subject: How to make a "telnetd" using tcpsvd and bash ?
Date: Mon, 11 Aug 2003 16:16:17 +0200	[thread overview]
Message-ID: <023d01c36013$26065460$1b1e15ac@pcb0087> (raw)


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




             reply	other threads:[~2003-08-11 14:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11 14:16 Uffe Jakobsen [this message]
2003-08-11 15:30 ` Laurent Bercot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='023d01c36013$26065460$1b1e15ac@pcb0087' \
    --to=uffe@uffe.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).