The code uses multiple spaces as field delimiter. It works pretty well
except for cases where there is only one space as delimiter. I would replace
them with another little script and then run this one. Sorry, but at
the moment i have no time.
Is it not possible to get the "Digital" clock in KDE 3.3 to show am or pm?
Well I just noticed the plain clock setting is the only one that shows it. (2 Replies)
Hey guys i need help i have a script to push a password to a remote server the only problem is the $ENCRYPT variable has $'s in it (from the encrypted password in the shadow file) and they drop out when apending to the shadow file via the usermod command so
$1$Q/6a08n$EoAcBuR/YnoCQC shows up as... (3 Replies)
I am developing a script that will run with '/bin/ksh' shell.
The script is intended to receive a password by keyboard input, but for security reasons I would like to hide what the user is typing.
The keyboard input is being caught by 'read' command.
exmaple :
echo "Please type your new... (1 Reply)
hello
how to remove blank spaces of a file with awk??
i´m trying
awk '{gsub(" ","",$0); print $0;}' filename.txt
but it answers
syntax error near line
first of all i did this for download from netbackup database jobs
privilege bpdbjobs -report -M sv88 -gdm -header |cut -c-1024... (4 Replies)
Hi, all
I have a file containing the following data:
name: PRODUCT_1
date: 2010-01-07
really_long_name: PRODUCT_ABCDEFG
I want to get the date (it is "2010-01-07" here), I could use the following code to do that:
awk... (6 Replies)
I want to remove extra spaces from variable in aix script.
We retrieve the data from oracle database and then print the values. We have a value on 90th position.
When we execute the query on sqlplus it shows the length of 90th position as 3, but when we use the same query in aix script it shows... (5 Replies)
Configure nfs4 on aix ok
i did all
chnfsdom #return correct domain
chnfs -r /export
chnfs -p /export
configured and shared pseudo root
#etc/exports
/export -nfsroot
/var/pubblica -exname=/export/pubblica,vers=4,sec=sys:krb5p:krb5i:krb5:dh,rw
exportfs -a
mount correct
mount... (1 Reply)
I have a large database with English on the left hand side and Indic words on the left hand.
It so happens that since the Indic words have been entered by hand, there are duplicates in the entries.
The structure is as under:
English headword=Indic gloss,Indic gloss
A small sample will... (6 Replies)
I've tried various solutions to move a file name with spaces and nothing seems to work. I need to take a date as input, prepend it to a filename with spaces then remove the spaces and mv the file to the new name.
#!/bin/ksh
#
if (( $# != 1 ))
then
echo "Usage: `basename $0` <DATE> "
... (5 Replies)
Discussion started by: w_s_s
5 Replies
LEARN ABOUT DEBIAN
ocf_heartbeat_sfex
OCF_HEARTBEAT_SFEX(7) OCF resource agents OCF_HEARTBEAT_SFEX(7)NAME
ocf_heartbeat_sfex - Manages exclusive access to shared storage using Shared Disk File EXclusiveness (SF-EX)
SYNOPSIS
sfex [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for SF-EX. It manages a shared storage medium exclusively .
SUPPORTED PARAMETERS
device
Block device path that stores exclusive control data. (required, string, no default)
index
Location in block device where exclusive control data is stored. 1 or more is specified. Default is 1. (optional, integer, default 1)
collision_timeout
Waiting time when a collision of lock acquisition is detected. Default is 1 second. (optional, integer, default 1)
monitor_interval
Monitor interval(sec). Default is 10 seconds (optional, integer, default 10)
lock_timeout
Valid term of lock(sec). Default is 100 seconds. The lock_timeout is calculated by the following formula. .sp lock_timeout =
monitor_interval + "The expiration time of the lock" .sp We suggest 90 seconds as a default value of the "The expiration time of the
lock", but you should change it in consideration of access delay to the shared disk and the switch time of the multipath driver. .sp
The lock timeout have an impact on start action timeout because start action timeout value is calculated by the following formula. .sp
start timeout = collision_timeout + lock_timeout + "safety margin" .sp The "safety margin" is decided within the range of about 10-20
seconds(It depends on your system requirement). (optional, integer, default 100)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 120s.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 10s. 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: 5s.
EXAMPLE
The following is an example configuration for a sfex resource using the crm(8) shell:
primitive p_sfex ocf:heartbeat:sfex
params
device=string
op monitor depth="0" timeout="10s" interval="10s"
SEE ALSO
http://www.linux-ha.org/wiki/sfex_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_SFEX(7)