I have a script that is run from the Cron 3 times an hour, here is the cron line:
02,22,42 7-18 * * 1-5 /hci/TEST/bin/myscript.ksh TEST 1>/hci/TEST/logs/myscript.info 2>/hci/TEST/logs/myscript
I am curious as to whether the time parameters from cron, ( 02, 22, 42 etc) can be accessed from the... (2 Replies)
I've done this before but I can't remember how. Too long away from vi.
I want to do a search are replace, but I want the replace to be a join.
Example
see spot run
see spot walk
see spot run fast
see spot hop
%s/run$/<somehow perform a join with the next line>/g
so the results... (0 Replies)
I am currently writing a script to compare a file list created over an FTP connection to a local directory.
I have cleaned the FTP file list up so that I just have a raw list of filenames however due to the directory structure employed (both locally and on the ftp site) I need to prepend each line... (6 Replies)
Hello Experts,
I have got a txt files which has multiple columns, I want to get the max, min and diff (max-min) for each column in the same txt file. Example:
cat file.txt
a 1 4
b 2 5
c 3 6
I want ouput like:
cat file.txt
a 1 4
b 2 5
c 3 6
Max 3 6
Min 1 4
Diff 2 2
awk 'min=="" ||... (4 Replies)
Hi,
How to replace only the function calls with a new name and skip the function definition and declarations. consider the following code.
There are 2 functions defined here returnint and returnvoid.
I need to replace returnint with giveint and returnvoid with givevoid only in the function... (1 Reply)
Hi,
How to replace only the function calls with a new name and skip the function definition and declarations. consider the following code.
There are 2 functions defined here returnint and returnvoid.
I need to replace returnint with giveint and returnvoid with givevoid only in the function... (2 Replies)
Gents,
I have a big file file like this.
5100010002
5100010004
5100010006
5100010008
5100010010
5100010012
5102010002
5102010004
5102010006
5102010008
5102010010
5102010012
The file is sorted and I would like to find the min and max value, taking in the consideration key1... (3 Replies)
Hi
I have a scenario:
I have a directory say DIR1 (no sub directories) and have few files in that directory as given below:
app-cnd-imp-20150820.txt
app-cxyzm-imp-20150820.txt
app-petco-imp-20150820.txt
app-mobility-imp-20150820.txt
app-mobility-imp-20150821.txt... (7 Replies)
Discussion started by: Saanvi1
7 Replies
LEARN ABOUT DEBIAN
corosync-objctl
COROSYNC-OBJCTL(8) System Manager's Manual COROSYNC-OBJCTL(8)NAME
corosync-objctl - Configure objects in the Object Database
SYNOPSIS
corosync-objctl [-b] [-c|-w|-d|-a|-t-h] <OBJECT-SPEC>...
DESCRIPTION
corosync-objctl is used to configure objects within the object database at runtime.
OBJECT-SPEC
There are two types of entities
Objects and Key=Value pairs
Objects
Objects are container like entities that can hold other entities. They are specified as "objectA"."objectB". An example is log-
ging.logger.
Key=Value pairs
These are the entities that actually hold values (read database "fields"). They are specified as object.key=value or just
object.key if you are reading.
OPTIONS -c Create a new object.
-d Delete an existing object.
-w Use this option when you want to write a new value to a key.
-a Display all values currently available.
-t Track changes to an object and it's children. As changes are made to the object they are printed out. this is kind of like a "tail
-f" for the object database.
-h Print basic usage.
-b Display binary values in BASH backslash escape sequences format.
EXAMPLES
Print the objOne object (shouldn't exist yet).
$ corosync-objctl objOne
Create the objOne object.
$ corosync-objctl -c objOne
Print the objOne object (empty).
$ corosync-objctl objOne
objOne
Write two new keys to the objOne object.
$ corosync-objctl -w objOne.max=3000 objOne.min=100
Print the objOne object (with the two new keys).
$ corosync-objctl objOne
objOne.min=100
objOne.max=3000
Delete the objOne.min key
$ corosync-objctl -d objOne.min=100
Prove that is gone.
$ corosync-objctl objOne
objOne.max=3000
Delete the whole objOne object.
$ corosync-objctl -d objOne
Prove that is gone.
$ corosync-objctl objOne
SEE ALSO confdb_initialize(3),
AUTHOR
Angus Salkeld
2008-07-29 COROSYNC-OBJCTL(8)