LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2004, 01:34 PM   #1
eastsuse
Member
 
Registered: Dec 2003
Location: Pacific Palisades
Distribution: Suse 9.0
Posts: 48

Rep: Reputation: 15
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?
 
Old 12-01-2004, 02:19 PM   #2
redgren
Member
 
Registered: Nov 2004
Distribution: Debian,Homebrew
Posts: 54

Rep: Reputation: 15
'set -o emacs'
 
Old 12-01-2004, 02:22 PM   #3
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
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).
 
Old 12-01-2004, 02:44 PM   #4
redgren
Member
 
Registered: Nov 2004
Distribution: Debian,Homebrew
Posts: 54

Rep: Reputation: 15
true, just assumed it was ksh, due to it being default for AIX.
 
Old 12-01-2004, 03:21 PM   #5
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
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.
 
Old 12-01-2004, 03:23 PM   #6
eastsuse
Member
 
Registered: Dec 2003
Location: Pacific Palisades
Distribution: Suse 9.0
Posts: 48

Original Poster
Rep: Reputation: 15
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.

Last edited by eastsuse; 12-01-2004 at 03:52 PM.
 
Old 12-03-2004, 11:11 AM   #7
redgren
Member
 
Registered: Nov 2004
Distribution: Debian,Homebrew
Posts: 54

Rep: Reputation: 15
what is the output of 'set' by itself?
 
Old 12-03-2004, 12:25 PM   #8
eastsuse
Member
 
Registered: Dec 2003
Location: Pacific Palisades
Distribution: Suse 9.0
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 12-04-2004, 09:18 AM   #9
redgren
Member
 
Registered: Nov 2004
Distribution: Debian,Homebrew
Posts: 54

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
History command amer_58 Linux - General 5 06-24-2005 12:26 PM
command line history begby Linux - Software 7 03-12-2005 01:58 AM
Command history? King4lex Linux - Newbie 4 09-03-2004 08:35 PM
Enabling arrow keys for history recall subu_s General 1 06-18-2004 07:30 AM
Telnet command execution history deadCenter Linux - Newbie 3 05-13-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration