01-10-2013
Within the script which runs the process, record the exit status to a file. Then monitor the file from your monitoring script.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have the following piece of code that is calling another child process archive.ksh in the background
while read file;
do
file_name=`ls $file`;
ksh archive.ksh $file_name &;
done < $indirect_file
The problem is, indirect_file may contain anwhere from 2 to 20 different... (5 Replies)
Discussion started by: Vikas Sood
5 Replies
2. UNIX for Advanced & Expert Users
two programs A and B writting in c++
I am using A to B and I want to know the return code of B.
in B
------------------------
int main()
{
return 11;
}
------------------------
in A
------------------------
int main()
{
system(A);
}
------------------------
Is it the right way... (1 Reply)
Discussion started by: filedeliver
1 Replies
3. Programming
two programs A and B writting in c++
I am using A to B and I want to know the return code of B.
in B
------------------------
int main()
{
return 11;
}
------------------------
in A
------------------------
int main()
{
system(A);
}
------------------------
Is it the right way... (1 Reply)
Discussion started by: filedeliver
1 Replies
4. Programming
Hi,
From within my C++ program, I fork a child process and execl an ftp session (solaris), like this :
std::string szStartCmd = "ftp -i -n -v 192.168.149.31";
int nExecRes = execl("/bin/sh", "sh", "-c", szStartCmd.c_str(), (char *)0);
I use 2 pipes to communicate between my... (7 Replies)
Discussion started by: KittyJ
7 Replies
5. Shell Programming and Scripting
Hi,
I have a process that I run in the background that looks like this
${BASEDIR}/ksh/sqler.ksh ${compnames003} &
and I would like to get the return code of the sqler.ksh script.
so my code is like this
${BASEDIR}/ksh/sqler.ksh ${compnames003} &
retcode=$? (3 Replies)
Discussion started by: c19h28O2
3 Replies
6. AIX
Am I right to assume that to check the return code of a savevg/mksysb on an AIX 4.2 is with the "$?" ? (1 Reply)
Discussion started by: Browser_ice
1 Replies
7. Shell Programming and Scripting
Hi,
I have a unix shell script which is launching multiple java processes by calling a java class in a loop, but each time with a different set of parameters.
Now I have to use the return code from each process in the script later.
but how do i obtain the return code from each process... (1 Reply)
Discussion started by: rama354
1 Replies
8. Shell Programming and Scripting
Hey all,
Okay, this one is tricky and I'm not sure there is a niec way to do it, or indeed anyway to do it. The main issue revolves around timing out a hung ssh. I am doing this by creating a wrapper script for the ssh with the following requirements.
My requirements are:
Defineable... (5 Replies)
Discussion started by: RECrerar
5 Replies
9. Shell Programming and Scripting
Hi ,
I have a situation where I have to Process files ( move , edit or rename ) in a folder ..... This folder is a FTP folder and Files keep coming in when they are available ... So I should perform my actions on those which which completed transaction .. .
Is there a way to identify a... (3 Replies)
Discussion started by: chillblue
3 Replies
10. Shell Programming and Scripting
Hi All,
I was out not working on unix from quite sometime and came back recently. I would really appreciate a help on one of the issue I am facing....
I am trying to kick off the CodeNameProcess.sh in PARALLEL for all the available codes. The script runs fine in parallel.
Let say there are... (1 Reply)
Discussion started by: rkumar28
1 Replies
LEARN ABOUT SUSE
ocf_heartbeat_proftpd
OCF_HEARTBEAT_PROFTP(7) OCF resource agents OCF_HEARTBEAT_PROFTP(7)
NAME
ocf_heartbeat_proftpd - OCF Resource Agent compliant FTP script.
SYNOPSIS
proftpd [start | stop | monitor | monitor | validate-all | meta-data]
DESCRIPTION
This script manages Proftpd in an Active-Passive setup
SUPPORTED PARAMETERS
binary
The Proftpd binary (optional, string, default /usr/sbin/proftpd)
conffile
The Proftpd configuration file name with full path. For example, "/etc/proftpd.conf" (optional, string, default /etc/proftpd.conf)
pidfile
The Proftpd PID file. The location of the PID file is configured in the Proftpd configuration file. (optional, string, default
/var/run/proftpd.pid)
curl_binary
The absolut path to the curl binary for monitoring with OCF_CHECK_LEVEL greater zero. (optional, string, default /usr/bin/curl)
curl_url
The URL which is checked by curl with OCF_CHECK_LEVEL greater zero. (optional, string, default ftp://localhost/)
test_user
The name of the ftp user for monitoring with OCF_CHECK_LEVEL greater zero. (optional, string, default test)
test_pass
The password of the ftp user for monitoring with OCF_CHECK_LEVEL greater zero. (optional, string, no default)
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.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 120s.
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 proftpd resource using the crm(8) shell:
primitive example_proftpd ocf:heartbeat:proftpd
op monitor depth="0" timeout="20s" interval="60s"
op monitor depth="10" timeout="20s" interval="120s"
SEE ALSO
http://www.linux-ha.org/wiki/proftpd_(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_PROFTP(7)