In order to have the value of a variable from a different script run within a another script, available globally, you need to source the inner script, instead of simply executing it.
Hi,
Is there any way to pass variable to a sed script.For awk we have -v option.like that do we have any way to pass variable to a sed script from a awk script or from normal script?
Thanx,
sounder (1 Reply)
Im running a script that runs scripts within it self and i need to pass vars made in the original script to scripts run within it and the only way i can think to do it is right the string to a file and read the file in the script (4 Replies)
I am new to scripting in AIX / UNIX. I have a script that runs 4 other scripts and I want to be able to pass in a agrument that I can check before I run the next script to see if the previous script finished with no errors.
Can someone send me an example of this as I'm sure it's pretty easy to... (1 Reply)
Hey all,
I'm wondering how you pass variable's that are defined in one script to another script that's been called by that first script.....
Best regards,
Jaz (1 Reply)
Hi All,
I have two perl scripts say A.pl and B.pl.
A.pl interacts with Database and pulllls around 20 column-variables, which needs to be used in B.pl .
A.pl calls B.pl, I figured out that there exist a limit on number of arguments being passed as command line argument.
A.pl writing to a... (3 Replies)
Hello everybody! First time posting here:)
Right, I am trying to pass arguments in my shell scripts using $1, $2 and $3 etc using if else statement........
This is my shell script which is based on serching the google website
#!/bin/sh
wget -t1 -E -e robots=off - -awGet.log -T 200 -H... (47 Replies)
I have written a program for some data analysis. It is gettin long. I would like to restructure it so that i can have a master file which controls multiple subscripts in order to make it easier to understand.
I need to be able to define variables in the master script which are used by all three... (2 Replies)
So this is something I've been wondering how to do for a while. Suppose I have two shell scripts a.sh and b.sh
script a does some function and outputs to a varable $x . I would then like to take $x into the second function, b.sh, and do a function on it and create some output. So how do you pass... (3 Replies)
I have 2 scripts. test.sh, which calls submit2.sh. One of the parameters contains space and is quoted.
((((./submit2.sh Group_1_2_AMS_DAILY_CORE_GRP03 AMS AMS_D 'DAILY REPORT PROCEDURES'; echo $?>&3) | tee 1.log >&4)3>&1) | (read xs; exit $xs)) 4>&1
echo parm 1 = $1
echo parm 2 = $2... (1 Reply)
Discussion started by: andyclam
1 Replies
LEARN ABOUT DEBIAN
di
DI(3) Library Functions Manual DI(3)NAME
DI - verify assertions in C and C++ code using gdb(1)SYNOPSIS
#include <DI.h>
DI(exprn)
DIG(exprn,guard)
DIH(exprn,handler)
DIP(exprn,param)
DIGH(exprn,guard,handler)
DIHP(exprn,handler,param)
DIGHP(exprn,guard,handler,param)
DS(exprn)
DESCRIPTION
The DI(exprn) checks that the exprn is true in the same way as assert(3). It is however implemented by generating debugger commands from
the source code and so only works if you run the command under a debugger after source the command file generated by nana(1).
exprn - the expression to be checked.
guard - the expression is normally only checked if the guard is true.
handler - a macro which generates the code that handles the error condition.
param - a parameter which can be passed off to the handler. This can be used for identifying the assertion failure in a space-efficent man-
ner, e.g. by copying it into a register before aborting.
See nana.info for details on configuring the behaviour on error detection, etc. You also need to include the nana library by using -lnana
if you use the default setup.
In addition to the DI, DIG, etc DI.h also provides DN, DNG, etc which are used to check that an expression is never true.
SEE ALSO nana-clg(1), nana(1), nana(3), I(3), L(3), DL(3), Q(3) and nana.info.
The nana.info file is the primary documentation for this library.
AUTHOR
Phil Maker <pjm@gnu.org>
DI(3)