So, if I understood this right, you're suggesting that I write another script called "run-all-agents" to execute the "run-any-agent" script - right?
Quote:
'$*' holds the positional parameters that you use when calling "run-all-agents".
What do you mean by "positional parameters"? So, will I be calling the script like this?
I'll mess with this a little and report back. It might also be nice to read the programs I want to run off a file (rather than "manually" typing them in). Anyway, I'll be back.
Thanks,
DTW
---------- Post updated at 04:01 PM ---------- Previous update was at 03:50 PM ----------
Quote:
I'll mess with this a little and report back.
The script seems to run just fine. I tried running two programs for now using the command:
However, I was wondering if there's a clean way to stop the programs, though. I used to be able to hit Ctrl+C to stop them but I'm not sure that is working very well now. They still run when I press the "Ctrl" key followed by the "C" key. Is there a script that can be written to halt the running programs cleanly too?
Thanks,
DTW
Last edited by DTriniWay; 01-20-2010 at 05:06 PM..
Just getting into the Unix command line programming and am unable to run any program I write. I am using a Makefile and the source is compiling but when I enter the name of the output file I get back:
bash: lab01exe.out: command not found
I'm sure I am just dooing something simple... (2 Replies)
How can I make a program run automatically at a certain time of day?
My problem is I need to make a small backup program that will back up a few files every day? (3 Replies)
This is not a question, but rather a simple how-to for
programmers who are new to the UNIX environment.
I too,am new to UNIX.
First I developed a few programs on my box and perfected them
until they were satisfactory for execution.
Problem was however, that once i compiled and all that,... (2 Replies)
Hi.Iam new to Linux.i got linux 7.0 pro and dont know how to run programs. I want a perl interputer and i know i installed one but how do i run it ??? Also how do i run a C or C++ editor ?and how do i run cron ? (3 Replies)
Hi there! I tried to search for something like this here but couldn't find anything. I need to run a specific program when linux starts up. I need to run it after the rp-pppoe has started because this prog needs internet connection.
I start the program by entering ./dynix start (its in my home... (4 Replies)
hi ,
i need to run a parallel program .
for example;
program1
{
array=" the second program should called here : program 2"
the execution should continue
}
the 2nd program should recieve an array of information as argument and it should... (4 Replies)
Lets get some stuff out of the way before the question. I am currently running FreeBSD 7.0 on a VirtualBox virtual machine. I do not know much about Unix or FreeBSD, though I do run linux at home. My boss gave me some files that he says are a unix version of the program Dynflow. The Programs... (0 Replies)
I have a program which I can run on the command line like below and works fine
/nethome/chrisd/HSeis/TommyCD/TommyCD-1101/bin/raytrac vmod=npt10-z30.vmod srfile=jcdint.sc rcfile=jcdint.rc phases="SP FS" level=twop format="X T" dtau=0.1 mdacc=0.5 mindist=0.1 maxitertp=25 ray=npt10-z30.ry... (0 Replies)
I want to run a C program from my BASH script. Here's some very basic simplified code of my bash script:
#!/bin/bash
echo "Run C program"
./main.c
echo "Ran C program"
Here's my main.c:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{
... (3 Replies)
Discussion started by: millsy5
3 Replies
LEARN ABOUT DEBIAN
fence_node
FENCE_NODE(8) cluster FENCE_NODE(8)NAME
fence_node - a utility to run fence agents
SYNOPSIS
fence_node [OPTIONS] nodename
DESCRIPTION
This utility runs a fence agent against nodename. The agent and args are taken from the running cluster configuration based on clus-
ter.conf(5).
fence_node is a wrapper around the libfence functions: fence_node() and unfence_node(). These libfence functions use libccs to read the
node fencing configuration, which means that corosync (with cman and ccs) must be running to use fence_node(8).
The fenced(8) daemon is the main user of libfence:fence_node(), and the configuration details for that function are given in the fenced(8)
man page.
Fencing vs. Unfencing
The main use for unfencing is with storage/SAN (non-power) agents.
When using power-based fencing agents, the fencing action itself is supposed to turn a node back on after first turning the power off (this
happens automatically with a "reboot" action, and needs to be configured explicitly as "off" + "on" otherwise.)
When using storage-based fencing agents, the fencing action is not allowed to re-enable a node after disabling it. Re-enabling a fenced
node is only safe once the node has been rebooted. A natural way to re-enable a fenced node's access to storage, is for that node to re-
enable the access itself during its startup process. The cman init script calls fence_node -U (nodename defaults to local nodename when
unfencing). Unfencing a node without an <unfence> configuration (see below) is a no-op.
The basic differences between fencing and unfencing:
Fencing
1. libfence: fence_node(), command line: fence_node nodename
2. Turns off or disables a node.
3. Agents run with the default action of "off", "disable" or "reboot".
4. Performed by a cluster node against another node that fails (by the fenced daemon).
Unfencing
1. libfence: unfence_node(), command line: fence_node -U nodename
2. Turns on or enables a node.
3. Agents run with the explicit action of "on" or "enable".
4. Performed by a cluster node "against" itself during startup (by the cman init script).
OPTIONS -U Unfence the node, default local node name.
-v Show fence agent results, -vv to also show agent args.
-h Print a help message describing available options, then exit.
-V Print program version information, then exit.
FILES
The Unfencing/unfence_node() configuration is very similar to the Fencing/fence_node() configuration shown in fenced(8). Unfencing is only
performed for a node with an <unfence> section:
<clusternode name="node1" nodeid="1">
<fence>
</fence>
<unfence>
</unfence>
</clusternode>
The <unfence> section does not contain <method> sections like the <fence> section does. It contains <device> references directly, which
mirror the corresponding device sections for <fence>, with the notable addition of the explicit action of "on" or "enable". The same
<fencedevice> is referenced by both fence and unfence <device> lines, and the same per-node args should be repeated.
<clusternode name="node1" nodeid="1">
<fence>
<method name="1">
<device name="myswitch" foo="x"/>
</method>
</fence>
<unfence>
<device name="myswitch" foo="x" action="on"/>
</unfence>
</clusternode>
SEE ALSO fenced(8)cluster 2009-12-21 FENCE_NODE(8)