I also learned that && means more than the traditional AND. But what does the dot mean in the following code. I assume it does NOT mean the current directory.
Hi, experts.
Whould anybody clear explay me difference and usage of these 3 commands (particulary in bash) :
exec
eval
source
I've tryed to read the manual pages but did not get much.
Also could not get something useful from Google search - just so much and so not exactly, that is... (3 Replies)
Hi,
I need to understand the following script:
a=`dirname $0`
b=`uname -s`
if ; then
c=$a/../../../platforms/$b/extlib
else
c=`pwd`/$a/../../../platforms/$b/extlib
fi
There are a bunch of variable assignments going on here!!!
What does this variable means: "${a:0:1}"
... (2 Replies)
I do not claim to be an expert, but I have done things with scripts that whole teams of folks have said can not be done. Of course they should have said we do not have the intestinal fortitude to git-r-done.
I have been using UNIX actually HPUX since 1992. Unfortunately my old computer died and... (7 Replies)
Hi All,
I have a unix old script i but i am not able to understand the few commands in it and what it does. below is the script.
if ;
then
for F in $(find $DIR/. ! -name . -prune -name "DP_*.dat")
do
IN=${F##/*/}
OUT='ORD'$(echo $IN | cut -c7-)
exec.ksh $IN... (2 Replies)
Hi,
I am trying what the following loop does :
for i in XYZ
do
for j in M1 R1 R2 R3
do
if
then
kList=""
n=1
while
do
kList="$kList $n"
let n++
done
There are a couple of loop as mentioned above for R1.R2.R3. (1 Reply)
Good afternoon everyone,
I am very new to UNIX shell scripting and I am trying to understand the following code. I know what it does but I need to modify it so it will allow me to pass a file name as *FILENAME*
Thank for any guidance offered.
if ] ; then
match=`expr "$file" :... (2 Replies)
Please help me understand how sort -k3,3 -k 4,4 short* works , is it sorting 3 and 4 th field ? what is the use of specifying 3,3 and 4,4 in sort and what is actually does and i see sort -k3 short* and sort -k3,3 -k 4,4 short* giving the same output.
Sort output attached
Please help (2 Replies)
I have a file with two line, one is header, the other actual value:
TYPCD|ETID2|ETID|LEG ID|PTYP|PTYP SUB|TRD STATUS|CXL REASON|CACT|CACTNM|ENCD|ENC
D NM|TRDR|ASDT|TRDT|MTDT|STDT|LS|SECID|SECID TYP|SECNM|PAR|STCC|MARKET PRICE|DIS
MARKET PRICE|MARKET PRICE CURRENCY|SRC OF SETTLEMENT... (2 Replies)
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)
I am still learning shell scripting. Recently I see a function for read configuration. But some of special character make me confused. I checked online to find answer. It was not successful. I post the code here to consult with expert or guru to get better understanding on these special characters... (3 Replies)
Discussion started by: duke0001
3 Replies
LEARN ABOUT SUSE
ocf_heartbeat_jboss
OCF_HEARTBEAT_JBOSS(7) OCF resource agents OCF_HEARTBEAT_JBOSS(7)NAME
ocf_heartbeat_jboss - Manages a JBoss application server instance
SYNOPSIS
jboss [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for Jboss. It manages a Jboss instance as an HA resource.
SUPPORTED PARAMETERS
resource_name
The name of the resource. Defaults to the name of the resource instance. (optional, string, default default)
console
A destination of the log of jboss run and shutdown script. (optional, string, no default)
shutdown_timeout
Timeout for jboss bin/shutdown.sh. We wait for this timeout to expire, then send the TERM and QUIT signals. Finally, the KILL signal is
used to terminate the jboss process. You should set the timeout for the stop operation to a value bigger than the sum of the timeout
parameters. See also kill_timeout. (optional, integer, default 5)
kill_timeout
If bin/shutdown.sh doesn't stop the jboss process, then we send it TERM and QUIT signals, intermittently and once a second. After this
timeout expires, if the process is still live, we use the KILL signal. See also shutdown_timeout. (optional, integer, default 10)
user
A user name to start a JBoss. (optional, string, default root)
statusurl
URL to test in the monitor operation. (optional, string, default http://127.0.0.1:8080)
java_home
Home directory of Java. Defaults to the environment variable JAVA_HOME. If it is not set, then define this parameter. (optional,
string, no default)
jboss_home
Home directory of Jboss. (required, string, no default)
pstring
With this string heartbeat matches for the right process to kill. (optional, string, default java -Dprogram.name=run.sh)
run_opts
Start options to start Jboss with, defaults are from the Jboss-Doku. (optional, string, default -c default -l lpg4j)
shutdown_opts
Stop options to stop Jboss with. (optional, string, default -s 127.0.0.1:1099)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 60s.
stop
Stops the resource. Suggested minimum timeout: 120s.
status
Performs a status check. Suggested minimum timeout: 30s.
monitor
Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 10s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a jboss resource using the crm(8) shell:
primitive example_jboss ocf:heartbeat:jboss
params
jboss_home=string
op monitor depth="0" timeout="30s" interval="10s"
SEE ALSO
http://www.linux-ha.org/wiki/jboss_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_JBOSS(7)