Stored command


 
Thread Tools Search this Thread
Operating Systems AIX Stored command
# 1  
Old 09-12-2014
Stored command

I'm working with unix AIX core May 3 00F80B654C00 I use putty as terminal have a given every time I write a command is not in memory if I want to use I have to rewrite as I can do to that command me to stay saved so that riva press the arrow and have the command history
# 2  
Old 09-12-2014
This isn't very clear. At a guess, I think you are asking about command-line editing. What context are you using for command-line editing. People generally use vi or emacs (set -o vi, set -o emacs, respectively). google command history vi or command history emacs for usage.
This User Gave Thanks to blackrageous For This Post:
# 3  
Old 09-12-2014
I use putty for example
write this ls -ltr
after I write more test.txt
if I want to use ls command again should write -latr redialing is not saved to be used with the keyboard arrow riba, understood my problem?
# 4  
Old 09-12-2014
I assume you mean something like this?
Quote:
I'm working with unix AIX core May 3 00F80B654C00. I use putty as a terminal emulator. Every time I write a command, it is not in memory. If I want to use the command I have to re-enter it. What can I do so that the command gets saved and so that if I press the arrow-up keys it appears in the list of recent commands
If so, it depends on the shell you are using. If you are using bash or tcsh then arrow-up should work. If you are using ksh (KornShell) then try the following:

First enter:
Code:
set -o vi

And then to access previous commands keep pressing:
Code:
ESC-k

This User Gave Thanks to Scrutinizer For This Post:
# 5  
Old 09-12-2014
I thank you very much works Esc -k this page is a treasure for unix programaodres
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Run command stored in variable

Hi, I have a shell script where I have to connect t oracle database. I have to store the command in a variable and then run the command through the variable.The OS is solaris 10 and the shell is bash.pls help when I run the command it doesnot work.Thanks. if CONNECT= "sqlplus... (4 Replies)
Discussion started by: Rossdba
4 Replies

2. Shell Programming and Scripting

Stored Procedure not executing

below code is not executing the stored procedure,not sure what the issue.Even sqllog is blank.please help me its very urgent. sqlplus -s $connect_str@$DB_ORACLE_SID >> ${SQL_LOG_FILE} << EOF set serverout on set feed off set head off set pages 0 set colsep , set tab off set lin 150... (3 Replies)
Discussion started by: katakamvivek
3 Replies

3. Shell Programming and Scripting

using sed command to display contents where line numbers are stored in variables

if i want to display the contents of a file between say line number 3 and 10 then i use the following command sed -n '3,10p' filename if this 3 was contained in x and 10 was contained in y then how wud this command modified? sed -n '$x,$yp' filename does not work..please advise (2 Replies)
Discussion started by: arindamlive
2 Replies

4. Shell Programming and Scripting

execute command stored in a string

Hi, Here's the problem I am facing. This is just an example: list_files.ksh ------------ dir=$1 match=$2 var="ls $dir | grep $match" files=`"$var"` I get the below error on executing the above script: ./list_files.ksh: ls /home/my_files | grep xml: not found I know I... (2 Replies)
Discussion started by: dips_ag
2 Replies

5. UNIX for Dummies Questions & Answers

where is Ip address stored

I run - telnet adl001 (where adl001 is a box name) and it works Ok /etc/hosts file does not have resolution of the ip address for this name where it can be found ? Thanks (5 Replies)
Discussion started by: zam
5 Replies

6. UNIX for Dummies Questions & Answers

can i exectue a command stored in a variable.it goes like this

hi the code i ve written is as follows: command="egrep ',100,|,200,' | wc -l" count =`cat trial.txt | $command` echo "$count" the contents of trial.txt is : 000,100,200,300, 001,200,100,201, 002,200,100,400, i need to get the count using the command stored in a variable and using... (2 Replies)
Discussion started by: Syms
2 Replies

7. Solaris

Where are routes stored ?

Hi there When adding a route (or indeed deleting a route) which file is amended ? I am moving a box from one network to another and when it starts up it tries to connect run 'add net 192.x.x.x' etc etc ...but i dont want it to do that where do I edit these route additions cheers (5 Replies)
Discussion started by: hcclnoodles
5 Replies

8. Shell Programming and Scripting

Stored Procedure on NT/SQLServer

Hi: How will I execute a Stored Procedure that sits on NT/SQLServer. Any help would be appreciated. Thanks (3 Replies)
Discussion started by: mayohan
3 Replies

9. UNIX for Advanced & Expert Users

Environmental Variables - where stored ?

Hi all ! Yesterday I defined an environmental variable PATH, but today when I restarted machine, I could not see that it was stored any place. Is there any file where I could save the settings ? I have quite a few env.variables defined, so I need a smarter way to define. regards D (5 Replies)
Discussion started by: DGoubine
5 Replies

10. UNIX for Dummies Questions & Answers

Stored Procedures

Dear friends, can anyone suggest links for online books on stored procedures in oracle. Cheers, (2 Replies)
Discussion started by: thumsup9
2 Replies
Login or Register to Ask a Question