Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tcl_recordandevalobj(3) [redhat man page]

Tcl_RecordAndEvalObj(3) 				      Tcl Library Procedures					   Tcl_RecordAndEvalObj(3)

__________________________________________________________________________________________________________________________________________________

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(3)

Check Out this Related Man Page

Tcl_RecordAndEvalObj(3) 				      Tcl Library Procedures					   Tcl_RecordAndEvalObj(3)

__________________________________________________________________________________________________________________________________________________

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(3)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

.sh_history contains the list of past commands

hi, .sh_history keeps a list of past commands that we entered. but it has a limit and where do we set this limit. thanks. (1 Reply)
Discussion started by: yls177
1 Replies

2. UNIX for Dummies Questions & Answers

tab completion using ! history command

Hi all, I recently discovered the ! command. I think it's great that !cd ? will match the last command that began with cd ?. However, for ! to be particularly useful to me (for now anyway) it would be nice if there was a tab completion option available (as with the cd command). Does anyone know... (3 Replies)
Discussion started by: x-375HK-x
3 Replies

3. UNIX for Dummies Questions & Answers

How to avoid historying my command

Dear all, Normally unix automatically record up to 500 the command lines whatever I put in. Does anyone knows how I can avoid this record, in another word, I dont want system remember what I typed in thanks (2 Replies)
Discussion started by: ting123
2 Replies

4. UNIX for Dummies Questions & Answers

I want to refer to an old command

I want to see a command that I typed a few days back. It looks like I can access only the latest 1000 commands through the history command. Is there a way I can access it or has it been deleted? (2 Replies)
Discussion started by: Legend986
2 Replies

5. UNIX for Dummies Questions & Answers

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. (8 Replies)
Discussion started by: appledrive
8 Replies

6. Shell Programming and Scripting

History Command

Hi all experts, I want to see all the command that is typed in the server 3 days ago. I typed HISTORY command but it does not show all the things. The reason is my senior DBA could see all the commands ran in the server 3 days ago but i cannot see. Please let me know is there anyway i can view... (6 Replies)
Discussion started by: ma466
6 Replies

7. UNIX for Advanced & Expert Users

Using Unix

Hi, Im a beginner in unix. How can i get the command which i typed in an xterm earlier by typing the first few letters ....with out using those up/down key stuff and history command...??? thanks Alex (6 Replies)
Discussion started by: appualex
6 Replies

8. Shell Programming and Scripting

Record all users' command

Hi experts, .history can record one user's own command history, but my request is, I want to record all users who run commands on that box, and export the commands to a file somewhere, which record the userid, time and full command. Is it possible? I just need for audit, and trace back, if... (3 Replies)
Discussion started by: newoz
3 Replies

9. UNIX for Dummies Questions & Answers

how to set top arrow to get the history of last used commands

guys can any one help me how to set top arrow to get the history of last used commands.I am using ksh (3 Replies)
Discussion started by: etldev
3 Replies

10. Shell Programming and Scripting

command history of a particular user in a multiuser environment

Is it possible to find out the history of recently typed in commands of a particular user in a multi user system? the history command expects a numeric argument with it. is it possible to find out the history o commands of a particular user say John_smith for example? (2 Replies)
Discussion started by: arindamlive
2 Replies

11. AIX

history

Hi How to see all the commands typed as user padmin in the vio servers ? history command shows only a few commands ? (1 Reply)
Discussion started by: newtoaixos
1 Replies

12. AIX

History command

How to get the other user history file. I would like to check the commands issues from my teammate. (1 Reply)
Discussion started by: Mariappan.m
1 Replies