03-31-2018
Just defines two variables?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi ,
i am writing a script to copy the MQ messages from onw queue to another. The following i got from one site, but i di not understand , can anyone explain.
/root/scripts/sap/q -m$Q_MANAGER -i$Q_NAME_SRC_1 -F/logs/mq/MQ_COPYdump_$Q_NAME_SRC_1.$$
/root/scripts/sap/q -m$Q_MANAGER... (0 Replies)
Discussion started by: Satyak
0 Replies
2. Shell Programming and Scripting
I am relatively new to Shell Scripting. I can't understand the following two scripts. Can someone please spare a minute to explain?
1) content s of file a are
(021) 654-1234
sed 's/(//g;s/)//g;s/ /-/g' a
021-654-1234
2)cut -d: -f1,3,7 /etc/passwd |sort -t: +1n gives error (3 Replies)
Discussion started by: shahdharmit
3 Replies
3. Shell Programming and Scripting
Hi All;
Is there anybody can explain this script please?
trap 'C_logmsg "F" "CNTL/c OS signal trapped, Script ${G_SCRIPTNAME] terminated"; exit 1' 2
trap 'C_logmsg "F" "Kill Job Event sent from the Console, Script ${G_SCRIPTNAME] terminated"; exit 1' 15 (3 Replies)
Discussion started by: thankbe
3 Replies
4. Shell Programming and Scripting
Can u please explain what it is doing
#!/bin/sh
fullyear=`/home/local/bin/datemmdd 1`"."`date +%Y`
uehist=/u05/home/celldba/utility/ue/prod/history
echo $fullyear
cd $uehist
ls -ltr pwroutages.master.$fullyear* | awk '{print $9}' > /u01/home/celldba/tmp/pwroutages_master_all_tmp
while... (2 Replies)
Discussion started by: raopatwari
2 Replies
5. Shell Programming and Scripting
Hi All,
I have a ksh script & would like to understand mening of below lines in script,
Starting lines of script is as below,
#!/bin/ksh
#%W% %I% %D% %T% ---- ???
#%W%G --- ???
num_ctrl_files=0
OS=`uname`
if
then
//g' | egrep -v '(.sh:|.ksh:)' | sed 's/^.*://g' | sed 's/^M//g' |... (6 Replies)
Discussion started by: gr8_usk
6 Replies
6. Shell Programming and Scripting
Hi
i have one script and i am running it but not getting current output so i want to understand how to input in the script.
when i do help then i am getting below massage
thanks
got it (1 Reply)
Discussion started by: asavaliya
1 Replies
7. Shell Programming and Scripting
Hello world! Can someone please explain me how this code works? I'ts supposed to find words in a dictionary and show the anagrams of the words.
{
part = word2key($1)
data = $1
}
function word2key(word, a, i, x, result)
{
x = split(word, a, "")
asort(a)
... (1 Reply)
Discussion started by: jose2802
1 Replies
8. Shell Programming and Scripting
New to korn shel1 and having an issue. The following is suppose to read the parameter values from files in a source directory and then pass them on to a log file in a different directory, The ArchiveTracker scripts is suppose to call the parameterreader script to exact the parameter values and... (3 Replies)
Discussion started by: bayouprophet
3 Replies
9. Shell Programming and Scripting
Please help me to understand the below 3 lines of code.execute shell in jenkins
1)APP_IP=$( docker inspect --format '{{ .NetworkSettings.Networks.'"$DOCKER_NETWORK_NAME"'.IPAddress }}' ${PROJECT_NAME_KEY}"-CI" )
2)HOST_WORKSPACE=$(echo ${WORKSPACE} | sed... (1 Reply)
Discussion started by: naresh85
1 Replies
LEARN ABOUT DEBIAN
transfns
transfns(3U) InterViews Reference Manual transfns(3U)
NAME
TF_2Port, TF_Direct - transfer function subclasses
SYNOPSIS
#include <Unidraw/transfns.h>
DESCRIPTION
The TransferFunct abstract base class defines the transfer function protocol. The library predefines two subclasses. TF_2Port is a sub-
class that acts as an abstract base class for transfer functions having two sets of state variables, ``input'' and ``output'', with output
variables always dependent on input variables. TF_Direct is a subclass of TF_2Port that defines a one-to-one assignment relationship
between an input and an output state variable.
TF_2PORT PUBLIC OPERATIONS
void Evaluate(Path* = nil)
Evaluate first carries out information transfer between dependent state variables by calling the Transfer operation (described
below). Then it iterates through its output state variables; those that have changed (according to the ChangedOutput operation,
described below) get Transmit called on the connector they're bound to. Subclasses needn't redefine this operation if they imple-
ment Transfer and ChangedOutput appropriately.
virtual StateVar* GetInput(int index)
virtual StateVar* GetOutput(int index)
virtual void SetInput(StateVar*, int index)
virtual void SetOutput(StateVar*, int index)
Retrieve and assign the TF_2Port's input and output state variables, identified serially. These operations do nothing by default;
subclasses must allocate the storage they require.
virtual int Inputs()
virtual int Outputs()
Return the number of input and output state variables. These operations return zero by default.
TF_2PORT PROTECTED OPERATIONS
TF_2Port()
The constructor is protected to prevent instantiation.
virtual void Transfer()
Enforce the subclass-specific dependencies between the TF_2Port's state variables. This operation does nothing by default.
virtual boolean ChangedOutput(int index = 0)
Return whether the output state variable with the given index has changed its value since the last call to Transfer. Subclasses
redefine this operation according to the semantics of their Transfer operation.
TF_DIRECT PUBLIC OPERATIONS
TF_Direct(StateVar* input = nil, StateVar* output = nil)
Instantiate a new object, optionally specifying the input state variable and its dependent output state variable.
virtual StateVar* GetInput(int index = 0)
virtual StateVar* GetOutput(int index = 0)
virtual void SetInput(StateVar*, int index = 0)
virtual void SetOutput(StateVar*, int index = 0)
Retrieve and assign the TF_Direct's input and output state variables. Specifying an index greater than zero does nothing, since
TF_Direct defines a dependency between one input and one output state variable.
virtual int Inputs()
virtual int Outputs()
Return the number of input and output state variables. These operations return zero by default.
virtual int Inputs()
virtual int Outputs()
These operations return 1.
TF_DIRECT PROTECTED OPERATIONS
virtual void Transfer()
Assign the input state variable to the output state variable, setting a flag indicating that the output value has changed.
virtual boolean ChangedOutput(int index = 0)
Return the status of the flag set by Transfer. The flag is reset as a side-effect of this operation.
SEE ALSO
TransferFunct(3U)
Unidraw 6 August 1990 transfns(3U)