• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

History Stack with up and down keys while telneted into an AIX box.

 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Occasiaonally I have to telnet into a client's AIX box.

It's usually with short notice and no time to play around with settings.
I haven't been able to get the up and down keys to work.
Is there a particular character setting that needs to be tweeked to achieve this?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not an AIX guru, but just some general UNIX help - maybe this applies to AIX and maybe it doesn't...

Enter -

and see if you're running sh as the shell - it's one of the few shells that doesn't have command history. If it turns out this is the case, you can change your login shell to one you like using the chsh command and the path to the shell's binary, for example, something like -
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, instead of arrow keys - try Ctrl-P (for previous) and Ctrl-N (for next) to scroll through history. Not sure why this happens sometimes, but I think it might have something to do with character-code mappings.

(edit - googled and found more on this. And something that looks specific to AIX.)

Good luck
[ February 10, 2006: Message edited by: Nathan Pruett ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Changing shells didn't work but I'll try the ctl commands.

Thank you Nathan
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure if this will work either, I cant verify it right now but-

You can enable vi mode of editting the command line by first typing -
set -o vi

After that you can type "esc" when you want to move in and out of the vi mode.

So to access your history - type "esc" and then type "k" to go above and "j" to go below in your history.

Type "esc" to come back to command mode.

All other commands used in VI will work in the vi mode.

M
[ February 11, 2006: Message edited by: Madhu Manoharan ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic