Tcl_SourceRCFile(3) Tcl Library Procedures Tcl_SourceRCFile(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_SourceRCFile - source the Tcl rc file
SYNOPSIS
#include <tcl.h>
void
Tcl_SourceRCFile(interp)
ARGUMENTS
Tcl_Interp *interp (in) Tcl interpreter to source rc file into.
_________________________________________________________________DESCRIPTION
Tcl_SourceRCFile is used to source the Tcl rc file at startup. It is typically invoked by Tcl_Main or Tk_Main. The name of the file
sourced is obtained from the global variable tcl_rcFileName in the interpreter given by interp. If this variable is not defined, or if the
file it indicates cannot be found, no action is taken.
KEYWORDS
application-specific initialization, main program, rc file
Tcl 8.3 Tcl_SourceRCFile(3)
Check Out this Related Man Page
Tcl_AppInit(3) Tcl Library Procedures Tcl_AppInit(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_AppInit - perform application-specific initialization
SYNOPSIS
#include <tcl.h>
int
Tcl_AppInit(interp)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter for the application.
_________________________________________________________________DESCRIPTION
Tcl_AppInit is a ``hook'' procedure that is invoked by the main programs for Tcl applications such as tclsh and wish. Its purpose is to
allow new Tcl applications to be created without modifying the main programs provided as part of Tcl and Tk. To create a new application
you write a new version of Tcl_AppInit to replace the default version provided by Tcl, then link your new Tcl_AppInit with the Tcl library.
Tcl_AppInit is invoked after by Tcl_Main and Tk_Main after their own initialization and before entering the main loop to process commands.
Here are some examples of things that Tcl_AppInit might do:
[1] Call initialization procedures for various packages used by the application. Each initialization procedure adds new commands to
interp for its package and performs other package-specific initialization.
[2] Process command-line arguments, which can be accessed from the Tcl variables argv and argv0 in interp.
[3] Invoke a startup script to initialize the application.
Tcl_AppInit returns TCL_OK or TCL_ERROR. If it returns TCL_ERROR then it must leave an error message in for the interpreter's result;
otherwise the result is ignored.
In addition to Tcl_AppInit, your application should also contain a procedure main that calls Tcl_Main as follows:
Tcl_Main(argc, argv, Tcl_AppInit);
The third argument to Tcl_Main gives the address of the application-specific initialization procedure to invoke. This means that you don't
have to use the name Tcl_AppInit for the procedure, but in practice the name is nearly always Tcl_AppInit (in versions before Tcl 7.4 the
name Tcl_AppInit was implicit; there was no way to specify the procedure explicitly). The best way to get started is to make a copy of
the file tclAppInit.c from the Tcl library or source directory. It already contains a main procedure and a template for Tcl_AppInit that
you can modify for your application.
KEYWORDS
application, argument, command, initialization, interpreter
Tcl 7.0 Tcl_AppInit(3)
I need to use bash to convert sentences where all words start with a small letter into one where all words start with a capital letter.
So that a string like:
are utilities ready for hurricane sandy
becomes:
Are Utilities Ready For Hurricane Sandy (10 Replies)
Hi
I am new to this forum.
Any please help me to capture ctrl x and ctrl y via a bash script.
and please tell me how to clear the prompt via bash script
BR
Ramukumar M (4 Replies)
I have an Oracle Linux 7.1 vsphere host built. It's be preconfigured with our security configurations.
What I would like to do is unconfigure this host. Then set the host to do firstboot --reconfigure.
how do I do that using /etc/sysconfig/firstboot?
I've tried setting
... (10 Replies)
i know from the command line, the symbol $_ is used to get the last command that was run.
however, id like to replicate this within a script.
meaning, how do i do something like this:
#!/bin/sh
ps -ef | egrep talling
StoreThisLastCommandA=$_
awk '/error/ {print $3}' /tmp/test... (5 Replies)
hi folks,
how to using tar with exclude directory and compress it using tar.Z
i only know how to exclude dir only with this command below:
tar -cvf /varios/restore/test.tar -X excludefile.txt /jfma/test1/
how to compress it using 1 command?
Thanx
Please use CODE tags as... (6 Replies)
Quite an obscure question I think.
We have a rebuild process for remote sites that allows us to PXE rebuild a till (actually a PC with a touch screen and various fancy bits) running CentOS. The current CentOS5 tills work just fine with a tar image restore and some personalisation. Sadly,... (4 Replies)
Hello All,
I had recently learnt a bit of Docker(which provides containerization process).
Here are some of my learning points from it.
Let us start first with very basic question:
What is Docker:
Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
Hi Folks,
I feel that I should be posting this in the Unix for Dummies Forum and will probably wish I'd created an account and done just that - but here goes anyway.
I have two identical servers both Dell R430's both running RedHat Enterprise Server 7.4 and the same kernel, both have the same... (16 Replies)
Hi,
What is installation package and how to create it?
When we run:
in AIX:
installp package1
or
in Linux
rpm -ivh mypackage
What is package1 or mypackage in the abov examples and how to create them and deploy them?
I hope my question is clear enough.
Thank you (2 Replies)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)
After the success of the jq - tool for parsing and manipulating JSON-Data someone wrote a tool called yq, which aims to be the same for YAML, what jq is for JSON. Seems to work fine. I'll definitely give it a chance in future.
Example YAML-File:
--- !ruby/object:Puppet::Node::Facts
... (1 Reply)