LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   telnet up-arrow command history (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-up-arrow-command-history-261397/)

eastsuse 12-01-2004 01:34 PM

telnet up-arrow command history
 
I use SUSE 9.2 and and in my console, if I hit the up arrow button it will cycle through my command history so I can retrieve and re-execute an older command. However, when I telnet into an aix box, I can't keep this same functionality. Is there a way to configure the telnet session to do this?

redgren 12-01-2004 02:19 PM

'set -o emacs'

sigsegv 12-01-2004 02:22 PM

This isn't something that telnet controls. It's a function of the shell you're using. You need to man history on the AIX box to see how the shell it uses deals with history, and possible man <loginShell>, if history doesn't answer your question (echo $SHELL will print out your shell).

redgren 12-01-2004 02:44 PM

true, just assumed it was ksh, due to it being default for AIX.

sigsegv 12-01-2004 03:21 PM

I was being intentionally vague. I have no idea what AIX uses for it's default shell. I've not had a shell on an AIX box since before version 4.1.3, and I was typing my reply when you posted yours. :D

eastsuse 12-01-2004 03:23 PM

our aix box does use ksh for the shell. So I added the line set -o emacs to the .profile. I exited and re-entered. However, the up arrow still does not work.

redgren 12-03-2004 11:11 AM

what is the output of 'set' by itself?

eastsuse 12-03-2004 12:25 PM

Here's the output:

allexport off
bgnice on
emacs off
errexit off
gmacs off
ignoreeof off
interactive on
keyword off
markdirs off
monitor on
noexec off
noclobber off
noglob off
nolog off
notify off
nounset off
privileged off
restricted off
trackall off
verbose off
vi off
viraw off
xtrace off

redgren 12-04-2004 09:18 AM

In the listing below, emacs is "off" ... you can try "set -o emacs on"

Also, give it a try in the shell (instead of '.profile')...and see if it works...


Quote:

Originally posted by eastsuse
Here's the output:

allexport off
bgnice on
emacs off
errexit off
gmacs off
ignoreeof off
interactive on
.
.
.
vi off
viraw off
xtrace off



All times are GMT -5. The time now is 04:10 AM.