How can I compare two integer values which is stored in char pointers?
suppose I have char *a and char *b having values 10 and 20. how can i find the shorter value? (1 Reply)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Hi guys, I asked for help on programming forums and no one didn't helped me so I ask for help here. I am playing with some tasks from my book and I can't figure where did I get wrong.
From the first program I get a blank screen, program won't generate 10*10 matrix.
And second problem is I... (6 Replies)
Hi folks,
I am self-learning as I can
I have a script that has read a file into an array.
I can read out each line in the array with the code:
for INDEX in {0..$LENGTH} ## $LENGTH was determined at the read in
do
echo "${data}"
done
What I need to do is test the first char... (2 Replies)
Working out a small problem, I have a need of a Perl snippet which might look something like this:
use integer;
...
if ($changingNumber / 2)
{
do something;
}
else
{
do something else;
}
...
What I want to happen is for "if" to resolve as "true" every time a whole... (3 Replies)
Discussion started by: LinQ
3 Replies
LEARN ABOUT SUSE
ocf_heartbeat_pure-ftpd
OCF_HEARTBEAT_PURE-(7) OCF resource agents OCF_HEARTBEAT_PURE-(7)NAME
ocf_heartbeat_Pure-FTPd - Manages a Pure-FTPd FTP server instance
SYNOPSIS
Pure-FTPd [start | stop | monitor | validate-all | meta-data]
DESCRIPTION
This script manages Pure-FTPd in an Active-Passive setup
SUPPORTED PARAMETERS
script
The full path to the Pure-FTPd startup script. For example, "/sbin/pure-config.pl" (optional, string, default /sbin/pure-config.pl)
conffile
The Pure-FTPd configuration file name with full path. For example, "/etc/pure-ftpd/pure-ftpd.conf" (optional, string, default
/etc/pure-ftpd/pure-ftpd.conf)
daemon_type
The Pure-FTPd daemon to be called by pure-ftpd-wrapper. Valid options are "" for pure-ftpd, "mysql" for pure-ftpd-mysql, "postgresql"
for pure-ftpd-postgresql and "ldap" for pure-ftpd-ldap (optional, string, no default)
pidfile
PID file (optional, string, default /var/run/resource-agents/pure-ftpd-default.pid)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 20s.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 20s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
EXAMPLE
The following is an example configuration for a Pure-FTPd resource using the crm(8) shell:
primitive example_Pure-FTPd ocf:heartbeat:Pure-FTPd
op monitor depth="0" timeout="20s" interval="60s"
SEE ALSO
http://www.linux-ha.org/wiki/Pure-FTPd_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_PURE-(7)