All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aman" <aman@mistralsoftware.com>
To: "Aman" <aman@mistralsoftware.com>,
	"linuxppc embedded" <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Shell prompt - Problem Solved
Date: Tue, 29 Apr 2003 17:21:53 +0530	[thread overview]
Message-ID: <001401c30e45$ba674c10$370da8c0@aman> (raw)
In-Reply-To: 004e01c30db8$10b3d3b0$370da8c0@aman


Hi All

The echoing of received characters  got disabled, when I disable the shell
prompt. I used the command "stty echo -F /dev/ttyS0" to enable the echo of
the received characters

Regards
Aman

----- Original Message -----
From: "Aman" <aman@mistralsoftware.com>
To: "linuxppc embedded" <linuxppc-embedded@lists.linuxppc.org>
Sent: Tuesday, April 29, 2003 12:27 AM
Subject: Shell prompt - Command not visible


>
> Hi All
>
> To enable/ disable the shell prompt in linuxppc for IBM 440GP, I wrote two
> script files. They are as follows
>
> /**********************************************************************/
> /* enable_cli.sh: This script is to enable the shell prompt */
>
> grep -v 'sh:123:respawn:/bin/sh < /dev/console > /dev/console 2>
> /dev/console' /etc/inittab > inittab.tmp
> echo 'sh:123:respawn:/bin/sh < /dev/console > /dev/console 2>
/dev/console'
> >> inittab.tmp
> mv inittab.tmp /etc/inittab
> init q
> /**********************************************************************/
> /*disable_cli.sh: This script is to disable the shell prompt */
>
> grep -v 'sh:123:respawn:/bin/sh < /dev/console > /dev/console 2>
> /dev/console' /etc/inittab > inittab.tmp
> mv inittab.tmp /etc/inittab
> init q
> /**********************************************************************/
>
> To enable shell prompt ,  I give the command "sh enable_cli.sh, to disable
> the shell prompt "sh disable_cli.sh"
>
> First time things work fine ie enable/disable shell prompt.When enabled,
in
> the shell prompt I can execute the command from the shell prompt. If I
> disable the shell prompt and enable for the second time, I get the prompt
> and I can execute command in the prompt, however the commands I type on
the
> prompt is not visible.
> I type the enter key continuously I get the shell prompt like this
> sh-2.05a#  sh-2.05a#   sh-2.05a#  sh-2.05a#  sh-2.05a#  sh-2.05a#
sh-2.05a#
> sh-2.05a# sh-2.05a# sh-2.05a#  sh-2.05a#   sh-2.05a#  sh-2.05a#  sh-2.05a#
> sh-2.05a#  sh-2.05a#  sh-2.05a# sh-2.05a# sh-2.05a#  sh-2.05a#   sh-2.05a#
> sh-2.05a#  sh-2.05a#  sh-2.05a#  sh-2.05a#  sh-2.05a# sh-2.05a#
>
> Can anybody help me in solving this issue
>
> Regards
> Aman
>
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2003-04-29 11:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-28 18:57 Shell prompt - Command not visible Aman
2003-04-29 11:51 ` Aman [this message]

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='001401c30e45$ba674c10$370da8c0@aman' \
    --to=aman@mistralsoftware.com \
    --cc=linuxppc-embedded@lists.linuxppc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.