are they any server variables in bash/SSH scripting as is in PHP or Perl, for example in PHP:
$_SERVER or $_SERVER
I'm trying to retrieve the absolute path of an .SH script I'm running
thank you (6 Replies)
I am new to unix and the following problem is bugging me.:confused:
var1="hello1"
var2="hello2"
var3="hello3"
counter=1
while
do
echo $var$counter
done
the idea here is to display the value of "var" based on the counter.
I am using the korn shell. I used array here but the... (4 Replies)
Hi
Can you help me validate 2 variables?The first is an input date from the user and should be like this (yyyy-mm-dd). The second variable is an input time from the user and should be like this(hh:mm).When the input is wrong i want to give the chance to the user to insert again the date or time... (8 Replies)
Hey, im trying to validate a user input and need some help. The input needs to be just a single letter. Im using a case to so this eg:
read answer
case $answer in
*) echo "OK"
;;
*) echo "This is a number"
read answer
;;
*) echo... (2 Replies)
Hi,
I need some direction with the following. The below code is semi-psuedo code which will hopefully make it easier to understand what I am trying to achieve:
for i in `echo ${testarray
}`
do
let c=c+1
eval "first$c=$i"
while... (4 Replies)
Hi all,
This is my Script
#!/bin/bash
current_date=`date +%d-%m-%Y_%H.%M.%S`
Date=`date +%d%m%Y`
Lfriday=`date +%d%m%Y -d last-friday`
RootPath=/var/domaincount/com
mysql zonefile<<EOFMYSQL
CREATE TABLE com$Date(domain VARCHAR(255),col2 VARCHAR(255),col3 VARCHAR(255),col4... (10 Replies)
Hi all,
I want to dynamically set variables in a bash script. I made a naive attempt in a while loop that hopefully can clarify the idea.
n=0; echo "$lst" | while read p; do n=$(($n+1)); p"$n"="$p"; done
The error message is:
bash: p1=line1: command not found
bash: p2=line2: command... (8 Replies)
Hi ,
i am unable to generate dynamic variables can any one please help me on the below issue
j=1
{record_count_"$j"}=`db2 -xselect substr\(job_name,24\) rec_count from $libname.audit_table_nrt where job_name like \'DATAMART_DEL_RUN%\' and STS_FLAG=\'E\' and seq_no=$i`
echo " record... (3 Replies)
I have created one file that contains all the necessary info in it to create a download link. In each of the lines /results/analysis/output/Home/Auto_user_S5-00580-6-Medexome_67_032/plugin_out/FileExporter_out.67... (8 Replies)
Discussion started by: cmccabe
8 Replies
LEARN ABOUT CENTOS
tkvars
tkvars(n) Tk Built-In Commands tkvars(n)
__________________________________________________________________________________________________________________________________________________NAME
tkvars - Variables used or set by Tk
_________________________________________________________________DESCRIPTION
The following Tcl variables are either set or used by Tk at various times in its execution:
tk_library This variable holds the file name for a directory containing a library of Tcl scripts related to Tk. These scripts include
an initialization file that is normally processed whenever a Tk application starts up, plus other files containing proce-
dures that implement default behaviors for widgets. The initial value of tcl_library is set when Tk is added to an inter-
preter; this is done by searching several different directories until one is found that contains an appropriate Tk startup
script. If the TK_LIBRARY environment variable exists, then the directory it names is checked first. If TK_LIBRARY is not
set or does not refer to an appropriate directory, then Tk checks several other directories based on a compiled-in default
location, the location of the Tcl library directory, the location of the binary containing the application, and the current
working directory. The variable can be modified by an application to switch to a different library.
tk_patchLevel Contains a decimal integer giving the current patch level for Tk. The patch level is incremented for each new release or
patch, and it uniquely identifies an official version of Tk.
tk::Priv This variable is an array containing several pieces of information that are private to Tk. The elements of tk::Priv are
used by Tk library procedures and default bindings. They should not be accessed by any code outside Tk.
tk_strictMotif This variable is set to zero by default. If an application sets it to one, then Tk attempts to adhere as closely as possi-
ble to Motif look-and-feel standards. For example, active elements such as buttons and scrollbar sliders will not change
color when the pointer passes over them.
tk_textRedraw
tk_textRelayout
These variables are set by text widgets when they have debugging turned on. The values written to these variables can be
used to test or debug text widget operations. These variables are mostly used by Tk's test suite.
tk_version Tk sets this variable in the interpreter for each application. The variable holds the current version number of the Tk
library in the form major.minor. Major and minor are integers. The major version number increases in any Tk release that
includes changes that are not backward compatible (i.e. whenever existing Tk applications and scripts may have to change to
work with the new release). The minor version number increases with each new release of Tk, except that it resets to zero
whenever the major version number changes.
KEYWORDS
variables, version, text
Tk 4.1 tkvars(n)