Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
Saying:
Quote:
Originally Posted by gwfay
Nope that doesn't do it.
is not very definitive. For example, what did it seem to do? Was anything else affected?
On a machine running:
my experience is that, for Gnome terminal doing an ssh to the remote machine and running there in bash:
turns off the arrow feature, resulting in a display like:
whereas:
enables the arrow function.
However, there are many variables that might come into play here, settings from stty, the terminal emulator you are using, and so on.
issuing command set -o vi enables recall using [esc]k, but not the keyboard arrows. Without issuing the cmd there is NO recall. system is AIX 5.3 & putty emulator. It doesn't matter which terminal option I emulate, all give the same response.
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
I cannot easily get to the aix system from a putty client. However, we might be able to whittle down the number of possible issues. Please post the results of these commands from the prompt (the dollar is the prompt for me). After the command are listed the responses I get:
cheers, drl
the up & down arrows merely result in 2 beeps. I set the TERM variable to vt100 which was what my putty session was set to but that didn't change anything.
I also discovered that the system is running ksh natively NOT bash.
That's what appears at the beginning of my bash history (when you type "open .bash_history" in terminal)
sudo -k
export PS1="";sudo echo AUTHENTICATED;echo RETRY
exit
export PS1=""
sudo echo AUTHENTICATED ; sudo -k ; echo AUTHENTIKILL ; echo PROCESSEDAUTHENTICATION
sudo ls;sudo -k;exit;echo... (1 Reply)
Hi
I am trying to increase the number of commands recorded in my .bash_history file.
I followed what is indicated and have add to my .bashrc
export HISTCONTROL=ignoreboth
export HISTSIZE=1000000
export HISTFILESIZE=1000000
export HISTIGNORE='ls'but the .bash_history only contains 690... (5 Replies)
Hi Friends,
I am using AIX 6 with ksh shell, i am not able to get the commands histroy which was used earlier by pressing up and down arrow keys. Could you please help me to enable the history for ksh shell in AIX 6 OS.
Thanks in Advance.
Siva Kumar. (3 Replies)
Hi,
I want to export bash history to a file, I used the following command
history > /home/administrator/bashHistory
But the exported file only contains commands with line number from 996 to the last one, How to export all the commands including commands before line 996?
Thanks a lot.... (2 Replies)
Moderators,
Please excuse if I am in the wrong section.
I have a question that someone may know the answer to. We know that a current bash shell keeps a record of all commands in a buffer. When the shell is terminated this buffer is written out to ~/.bash_history for the user.
I know... (2 Replies)
Hello all, I have a bash function that opens Safari (I'm on OS X) with a specified argument.
Here it is :
function safari
{
#Safari bash function
TLDS=( "http://www." ".com" ".org" ".net" ".gov" ".edu" )
if ; then
open -a Safari ${TLDS}$2${TLDS}
elif ; then
open -a Safari... (0 Replies)
Hi All,
I would like to know how to get the command history from the prompt. For example in dos, if we hit the Up Arrow, we get the previous command. I am not getting this in my telnet session (AIX) at the prompt.
I know that if I type history command it will give a list of cammands I typed... (2 Replies)
Does anyone know of a way to mimic the up arrow/down arrow type bash behavior within a shell script?
Say I have a scripted menu, and would like to be able to up arrow to bring up the last X number of lines of user input?
Thanks to anybody with a suggestion. :) (0 Replies)