Hi,
One of our application is producing log files. But if we open the log file in vi or less or view mode, it shows all the special characters in it. The 'cat' shows correctly but it shows only last page. If I do 'cat' <file_name> | more, then again it shows special characters.
... (1 Reply)
Hi,
I need some advise on treating non printable chars over ascii value 126
Case 1 :
On some fields in the text , I need to retiain then 'as-is' and load to a database.I understand it also depends on database codepage.
but i just wanna know how do i ensure it do not change while loading... (1 Reply)
here is my simple script to show process and owners except me:
ps `-ef |grep xterm |grep -v aucar` | while read a1 a2 a3 a4 a5 a6 a7 a8
do
echo KILL..\($a1\).. $a2 |more
done
how can I pass values from command "ps -ef |grep xterm|grep -v aucar" to ?
because above command... (2 Replies)
I was using the following bash command inside the emacs compile command to search C++ source code:
grep -inr --include='*.h' --include='*.cpp' '"' * | sed "/include/d" | sed "/_T/d" | sed '/^ *\/\//d' | sed '/extern/d'
Emacs will then position me in the correct file and at the correct line... (0 Replies)
I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :(
I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
I was trying to run a code to check if a fax number is empty or not.
for that, I've written the following code which is throwing an error.
#!/bin/ksh
fax= "999-999-9999"
if ; then
fax_no="000-000-0000"
else
fax_no=$fax
fi
echo $fax_no
And I get the... (7 Replies)
I have a file with multiple lines. From each line I want to get all strings that starts with '+' and ends with '/'. Then I want the strings to be separated by ' + '
Example input:
+$A$/NOUN+At/NSUFF_FEM_PL+K/CASE_INDEF_ACC
Sample output:
$A$ + At + K (20 Replies)
Hi,
I have file
#cat drivers.txt
fcs0
fcs1
vscsi1
vscsi2
In this i need to check the availabality of "fcs" or "vscsi" alone not vscsi0,fcs1
I tried with "if condition" but it is not working.
cat drivers.txt| while read ADAP
do
echo "Checking for $ADAP"
if ;then
echo "FC... (9 Replies)
Hello guys,
I have a problem where I need to add a delimiter, that can be | for example, after each 28000 chars.
The problem is that sometimes 1 row, which should contain 28000 chars is split in 2, so I want to put the delimiter after each 28000 so I will know the end of each row.
Please... (2 Replies)
Hi,
I need all your help to achieve the below functionality.
I have a big 2 GB file and inside the file we need to identify, whether having a comma(,) or pipe(|) or tab or fixed position or semicolon(;) delimiter. If any of those delimiter found need to replace the file with pipe(|)... (1 Reply)
Discussion started by: lkeswar
1 Replies
LEARN ABOUT CENTOS
dlm_controld
DLM_CONTROLD(8) dlm DLM_CONTROLD(8)NAME
dlm_controld - dlm cluster control daemon
SYNOPSIS
dlm_controld [OPTIONS]
DESCRIPTION
The kernel dlm requires a user daemon to manage lockspace membership. dlm_controld manages lockspace membership using corosync cpg groups,
and translates membership changes into dlm kernel recovery events. dlm_controld also manages posix locks for cluster file systems using
the dlm.
OPTIONS
Command line options override a corresponding setting in dlm.conf(5).
For default settings, see dlm_controld -h.
--daemon_debug | -D
enable debugging to stderr and don't fork
--foreground
don't fork
--log_debug | -K
enable kernel dlm debugging messages
--protocol | -r str
dlm kernel lowcomms protocol: tcp, sctp, detect
--debug_logfile | -L
write debugging to log file
--enable_plock | -p 0|1
enable/disable posix lock support for cluster fs
--plock_debug | -P
enable plock debugging
--plock_rate_limit | -l int
limit rate of plock operations (0 for none)
--plock_ownership | -o 0|1
enable/disable plock ownership
--drop_resources_time | -t int
plock ownership drop resources time (milliseconds)
--drop_resources_count | -c int
plock ownership drop resources count
--drop_resources_age | -a int
plock ownership drop resources age (milliseconds)
--post_join_delay | -j int
seconds to delay fencing after cluster join
--enable_fencing | -f 0|1
enable/disable fencing
--enable_concurrent_fencing 0|1
enable/disable concurrent fencing
--enable_startup_fencing | -s 0|1
enable/disable startup fencing
--enable_quorum_fencing | -q 0|1
enable/disable quorum requirement for fencing
--enable_quorum_lockspace 0|1
enable/disable quorum requirement for lockspace operations
--fence_all str
fence all nodes with this agent
--unfence_all
enable unfencing self with fence_all agent
--help | -h
print this help, then exit
--version | -V
Print program version information, then exit
SEE ALSO dlm_tool(8), dlm.conf(5)dlm 2012-04-05 DLM_CONTROLD(8)