8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My question is basically as the title says. How can I check a user inputted string is only certain characters long (for example, 3 characters long) and how do I check a user inputted string only contains certain characters (for example, it should only contain the characters 'u', 'a', 'g', and 'c')... (4 Replies)
Discussion started by: Eric1
2. Shell Programming and Scripting
This was taken down recently because it appeared to be homework, but it isn't. It's for a script I am working on at work. Thanks for the help.
How do you check that user inputs (arguments 1 and 2) are both numbers and are at least 5 digits in length? (2 Replies)
Discussion started by: thibodc
3. UNIX for Dummies Questions & Answers
When I use who it shows who is online and from what time they logged in but is there a way I can see the last time someone was logged on if they aren't online? Is it with the who command?
thx (11 Replies)
Discussion started by: subway69
I'm a little rusty with HACMP, but wanted to find out if it is possible to remove a disk heartbeat network from a running HACMP cluster.
Reason is, I need to migrate all the SAN disk, so the current heartbeat disk will be disappearing. Ideally, I'd like to avoid taking the cluster down to... (2 Replies)
Discussion started by: cmcbugg
5. UNIX for Advanced & Expert Users
in a multi user system of 3 users X,Y,Z, if i know that X is presently online, is it possible to determine for how long has he been online? i mean the time duration (3 Replies)
Discussion started by: arindamlive
I'm writing a KSH shell script that's using SQL though DB2.
If I have a table defined and populated
db2 "create table tb(num int,letter char(4))"
db2 "insert into tb values(111,a)
db2 "insert into tb values(112,b)
db2 "insert into tb values(111,c)
How can I check if a letter user... (0 Replies)
Discussion started by: busdude
This is the source code:
using namespace std;
struct passwd *user;
char login="alex", password="qwertyuiop";
if ((user= getpwnam(login)) == NULL)
cout << "No such user\n";
else if... (24 Replies)
Discussion started by: hakermania
8. Shell Programming and Scripting
I decided to delete the first post since it was againt the forum rules (4 Replies)
Discussion started by: Necrologist
HEARTBEAT(8) System administration utilitie HEARTBEAT(8)
heartbeat - Heartbeat subsystem for High-Availability Linux
heartbeat is a basic heartbeat subsystem for Linux-HA. It will run scripts at initialisation, and when machines go up or down. This version
will also perform IP address takeover using gratuitous ARPs. It works correctly for a 2-node configuration, and is extensible to larger
It implements the following kinds of heartbeats:
o UDP/IP broadcast;
o UDP/IP multicast;
o UDP/IP unicast;
o Bidirectional Serial Rings ("raw" serial ports) -- this type is deprecated and should no longer be used;
o special "ping" heartbeats for routers, etc. -- this type has been superseded by functionality in pacemaker() and should no longer be
Comprehensive documentation on heartbeat is available in the Heartbeat User's Guide. If this documentation is not installed on your system,
it can be found at http://linux-ha.org/.
The following options are supported by heartbeat:
Increment debugging level. Higher levels are more verbose.
Reload heartbeat. This option is functionally identical to sending a running heartbeat process a HUP signal. If the configuration has
not changed, then this option is essentially a no-op. If ha.cf(5) or authkeys(5) has changed, then heartbeat will re-read these files
and update its configuration.
This option may not be used together with -R.
Kill (stop) heartbeat.
Report heartbeat status.
Heartbeat restart exec flag (internal use only). May not be used with -r.
Heartbeat current resource state for restart (internal use only). Only valid with -R.
Print out heartbeat version.
Note that most of these options are used for supporting the heartbeat init script, which provides the conventional start, stop, status and
restart options (among others). It is recommended to use this rather than invoking the heartbeat command directly.
Alan Robertson <firstname.lastname@example.org>
Juan Pedro Paredes Caballero <email@example.com>
Simon Horman <firstname.lastname@example.org>
Florian Haas <email@example.com>
Heartbeat 3.0.5 24 Nov 2009 HEARTBEAT(8)