(I trust that the `eval...` sets the variable as you desired - i.e. that EXPORT_PATH is at least two directories deep (cut -f 3), and the file you're looking for exists... what if there is more than one file?)
hi sir,
i need your help for this script
inside /rnmucdr/ednms05/ken/xMNBDF045_Script.sql content variable like this
select * from invoice where bill_date=$BILLDATE and startNum=$STARTPARTNNUM and total_partn=$TOTALPARTN
if i just paste this replace with the $SCRIPT it works great,if... (31 Replies)
I would like to know how to pass a variable inside a variable to a function.
sample code below
--------------
for x in 1 9
do
check_null $C$x ##call function to check if the value is null
if
then
echo "line number:$var_cnt,... (2 Replies)
Any help would be great. I know this is a dumb way of doing this, but I would like to know if there is a solution doing it this way. I'm very new at this and I'd like to learn more. Thanks! :D:D
count=0
while ; do
echo "enter your name"
read name_$count
let count=count+1
done
... (2 Replies)
Hi Gurus
I have a file called /tmp/CMDB which looks like this
serial: 0623AN1208
hostname: server1
model: x4100
assetID: 1234
I am writing a for loop that will go through this file line by line creating a variable of itself. Using the first iteration of the loop (i.e. the first line) as... (6 Replies)
Hi,
I am trying to do the following thing
var='date'
$var
Above command substitutes date for and in turn runs the date command and i am getting the todays date value.
I am trying to do the same thing as following, but facing some problems,
unique_host_pro="sed -e ' /#/d'... (3 Replies)
Hi there, i think im getting myself a little confused and need some help :wall:
I am reading in a bunch of variables to my script from an external file and need to validate that a value has been set for each
so if you can imagine, the user is required to pass in 4 values... (3 Replies)
Is this possible? The below code not working for me.
dir=mydir
if ; then
echo "found /home/$mydir "
else
echo "Not found /home/$mydir"
fi
---------- Post updated at 05:28 AM ---------- Previous update was at 05:25 AM ----------
Its working for me now (1 Reply)
Hello Everyone,
I am trying to resolve a variable inside another variable.Let me go straight to the example.
Input:
Query=$Table_1 Join $Table_2
(Query itself is a variable here)
Now for two different cases I am assigning different values to Table_1 and Table_2
Case 1:... (14 Replies)
Hi guys,
I have a file "abc.dat" in below format:
FILE_PATH||||$F_PATH
TABLE_LIST||||a|b|c
SYST_NM||||${SRC_SYST}
Now I am trying to read the above file and want to print the value for above dollar variables F_PATH and SRC_SYST. The problem is it's reading the dollar variables as... (5 Replies)
Discussion started by: abcabc1103
5 Replies
LEARN ABOUT DEBIAN
alzabo::debug
Alzabo::Debug(3pm) User Contributed Perl Documentation Alzabo::Debug(3pm)NAME
Alzabo::Debug - Creates constants used to turn on debugging
SYNOPSIS
export ALZABO_DEBUG='SQL|TRACE'
... load and run code using Alzabo ...
export ALZABO_DEBUG=METHODMAKER
... load and run code using Alzabo ...
DESCRIPTION
This module creates constants used by other modules in order to determine what debugging output should be generated.
The interface is currently experimental.
USAGE
Currently, the only way to turn on debugging is by setting the "ALZABO_DEBUG" environment variable. This variable can contain various
flags, each separated by a pipe char (|). Each flag turns on different types of debugging output.
These flags must be set before Alzabo is loaded, as debugging is turned on or off through the use of constants.
The current flags are:
* SQL
Generated SQL and its associated bound variables.
* TRACE
A stack trace will be generated any time SQL is generated.
* METHODMAKER
The "Alzabo::MethodMaker" module will generate verbose output describing the methods it is creating.
* REVERSE_ENGINEER
The modules involved in reverse-engineering will generate output describing what it finds during reverse-engineering.
* ALL
Turn on all flags.
For now, all debugging output is sent to "STDERR".
perl v5.8.8 2007-12-23 Alzabo::Debug(3pm)