AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

AIX / csh Shell / navigation with backspace, arrows / history

  • 1.  AIX / csh Shell / navigation with backspace, arrows / history

    Posted Thu July 06, 2006 10:53 AM

    Originally posted by: SystemAdmin


    hi,

    It is my first contact to AIX, it is a SAP Installation. The System + SAP has been installed by other's...

    Root User Shell is ok, using /usr/bin/ksh and everything is working well,
    the SAP User is defined to use /usr/bin/csh (no Change possible..)

    Under the SAP User, the Shell is extremly boring: It is not possible to navigate with the left/right arrows to correct the currend command, backspace is not working correct and there is no history about previos commands. I've to use putty to connect to the server.

    Do you have any idee, which AIX Environment Setting is dealing about this topic:

    Thanks for your help!

    Urs
    actual environment:
    TERM=xterm
    AUTHSTATE=files
    SHELL=/usr/bin/csh
    HOME=/home/pacadm
    USER=pacadm
    PATH=/oracle/PAC/102_64/bin:/home/pacadm:/usr/sap/PAC/SYS/exe/run:.:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/DynamicLinkManager/bin:/usr/local/bin:/usr/es/sbin/cluster
    TZ=NFT-1DFT,M3.5.0,M10.5.0
    LANG=en_US
    LOCPATH=/usr/lib/nls/loc
    LC__FASTMSG=true
    ODMDIR=/etc/objrepos
    LOGNAME=pacadm
    LOGIN=pacadm
    HISTFILE=
    HISTSIZE=50
    MANPATH=/usr/share/man:/usr/dt/man:/opt/csm/man
    SAPSYSTEMNAME=PAC
    DIR_LIBRARY=/usr/sap/PAC/SYS/exe/run
    JAVA_HOME=/usr/java14_64
    IBM_JAVA_OPTIONS=-Xmx256M
    THREAD=NOPS
    dbms_type=ORA
    dbs_ora_tnsname=PAC
    dbs_ora_schema=SAPSR3
    ORACLE_SID=PAC
    DB_SID=PAC
    ORACLE_BASE=/oracle
    TNS_ADMIN=/usr/sap/PAC/SYS/profile/oracle
    ORACLE_HOME=/oracle/PAC/102_64
    NLS_LANG=AMERICAN_AMERICA.UTF8
    SAPDATA_HOME=/oracle/PAC
    LIBPATH=/usr/lib:/lib:/usr/sap/PAC/SYS/exe/run:/oracle/client/10x_64/instantclient:/usr/local/secude/lib
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat

    #AIX-Forum


  • 2.  Re: AIX / csh Shell / navigation with backspace, arrows / history

    Posted Thu July 06, 2006 04:58 PM

    Originally posted by: SystemAdmin


    Urs,

    Some of the settings you are looking for are built into the csh shell.

    To view the command history for the user, use the command "history" or it is sometimes aliased as "h" This will show you all the commands that the user has used in that session. You can re-issue the command by using "!" before the command number. For example, you would like to re-issue command #8 you would issue "!8" To re-issue the last command typed, use "!!"

    To set the correct backspace key, use the command "stty erase" and then press the backspace key. This tells the session what your backspace key is mapped to. This can also be done in the term emulator program that you are using(putty) In the session properties, there is the keyboard option under terminal, it can be changed there. You may need to redefine your arrow keys in putty as well as I have never seen an issue using them.

    -Aaron
    #AIX-Forum