04-15-2008
Command for maintaining the list of commands used
Hi,
There is a command by which you can maintain a list of commands previously typed.
By this you dont have to type in the same command again and can use the up-down arrows to scroll through the list. Which is this command, i am not able to recall.
9 More Discussions You Might Find Interesting
1. Solaris
Dear All,
I am a new Administrator of Solaris in the company , I need a list of the commands pls ...
Regards
Adel (2 Replies)
Discussion started by: ArabOracle.com
2 Replies
2. UNIX for Advanced & Expert Users
I'm new at the entire spectrum of printing in Unix, and especially when--as I understand it--the printers are on a Windows server. At work we have a variety of printers and printing from Windows, or from Unix via lp or lpr works fine.
The initial problem: Our users will be printing up to 20... (1 Reply)
Discussion started by: effigy
1 Replies
3. UNIX for Advanced & Expert Users
How can I maintain different version control account(any common unix based version control like CVS,RCS,SCCS..) from a single UNIX Login Account.
Many programmers share a common UNIX user/login account.How do they maintain separate Version Control Account. (1 Reply)
Discussion started by: johnbach
1 Replies
4. UNIX for Dummies Questions & Answers
I have a system where i take hourly back-ups of the system.The script for maintaining full backup for the last 5 days is
find /backup/server -type f -mtime +4 -exec rm -f {} \;
works fine for keeping the files of some 5 days old.
In the case of hourly backups.How do we write to keep... (2 Replies)
Discussion started by: ravi55055
2 Replies
5. Shell Programming and Scripting
Hi everyone,
I have a script that takes command line entries, for example
# script.sh 1 "2" 3 4 "5"
I want to be able to maintain the integrity of this command line such that it is processed with the double quotes i.e.:
VAR1=1
VAR2="2"
VAR3=3
VAR4=4
VAR5="5"
The double-quotes... (2 Replies)
Discussion started by: procux
2 Replies
6. Shell Programming and Scripting
I have a common data folder with files like x* which is accessed by 3 unix servers.
Now each server will try to pick one file form this folder and move it to its local folder.
How to maintain file concurrency in this case?I dont want the same file to be accessed by more than one process. (2 Replies)
Discussion started by: prasperl
2 Replies
7. UNIX for Dummies Questions & Answers
I want to get list of linux commands used on Jan 01 2014 with the help of HISTORY command or some other linux commands,.
Kindly help. (3 Replies)
Discussion started by: karthick nath
3 Replies
8. Shell Programming and Scripting
Hi guys,
I am trying to store some output in a file and then compare it to another file.
I am gathering information from 2 commands:
cat /opt/jbin/server.log.tmp > A
grep "ephemeral" /opt/jbin/log/server.log.2015-05-02-18 > B
The contents of both file are the same. This means if I do a... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
9. Solaris
Hi all,
I have enable sar and the sa cron jobs in the sys account.
I would like to however, keep only 1 month of data.
Can i check for Solaris10, does sa2 do automatic purging of logs in /var/adm/sa/ that are 1 week old ?
-- Answer = yes ( in "/usr/lib/sa/sa2" if you open the script,... (2 Replies)
Discussion started by: javanoob
2 Replies
LEARN ABOUT DEBIAN
tcl_recordandevalobj
Tcl_RecordAndEvalObj(3tcl) Tcl Library Procedures Tcl_RecordAndEvalObj(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_RecordAndEvalObj - save command on history list before evaluating
SYNOPSIS
#include <tcl.h>
int
Tcl_RecordAndEvalObj(interp, cmdPtr, flags)
ARGUMENTS
Tcl_Interp *interp (in) Tcl interpreter in which to evaluate command.
Tcl_Obj *cmdPtr (in) Points to a Tcl object containing a command (or sequence of commands) to execute.
int flags (in) An OR'ed combination of flag bits. TCL_NO_EVAL means record the command but do not evaluate it.
TCL_EVAL_GLOBAL means evaluate the command at global level instead of the current stack level.
_________________________________________________________________
DESCRIPTION
Tcl_RecordAndEvalObj is invoked to record a command as an event on the history list and then execute it using Tcl_EvalObjEx (or Tcl_Global-
EvalObj if the TCL_EVAL_GLOBAL bit is set in flags). It returns a completion code such as TCL_OK just like Tcl_EvalObjEx, as well as a
result object containing additional information (a result value or error message) that can be retrieved using Tcl_GetObjResult. If you do
not want the command recorded on the history list then you should invoke Tcl_EvalObjEx instead of Tcl_RecordAndEvalObj. Normally
Tcl_RecordAndEvalObj is only called with top-level commands typed by the user, since the purpose of history is to allow the user to re-
issue recently invoked commands. If the flags argument contains the TCL_NO_EVAL bit then the command is recorded without being evaluated.
SEE ALSO
Tcl_EvalObjEx, Tcl_GetObjResult
KEYWORDS
command, event, execute, history, interpreter, object, record
Tcl 8.0 Tcl_RecordAndEvalObj(3tcl)