09-12-2008
CreateProcess == fork() + exec() in UNIX.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how to decrease priority of a particular process in time of process creation...
and also how to decrease priority of a particular process after process creation..
can any one please help me out... (2 Replies)
Discussion started by: Ramkum
2 Replies
2. Shell Programming and Scripting
Hello all,
I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted.
Thanks in advance
Regards,
pradeep kulkarni.
:mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies
3. Programming
Hi,
can somebody please help me regarding this?
How can i print parent's PID from child's and vice versa.
I have tried with getpid() & ngetppid() function but it is not giving me the correct data. The logic i used is:
if (pid == 0)
{
getpid() : Chil'd PID
getppid():... (1 Reply)
Discussion started by: dsudipta
1 Replies
4. Shell Programming and Scripting
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies
5. Shell Programming and Scripting
get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same.
hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies
6. Shell Programming and Scripting
how the fork function creats the child process?????
what the things it will take from parent process nd what it will give to child process? (4 Replies)
Discussion started by: Mac91
4 Replies
7. Shell Programming and Scripting
Hi all,
This is my sample code in /etc/httpd/conf.d/applications.conf file currently we are creating subdomain mannually for every new subdomain. I want to automate this process througs bash script , how its possible.
<VirtualHost *:80>
ServerName google.com
ServerAlias google.com... (5 Replies)
Discussion started by: anishkumarv
5 Replies
8. BSD
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies
9. Shell Programming and Scripting
I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues:
1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies
10. Shell Programming and Scripting
Team,
I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list.
How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
LEARN ABOUT CENTOS
cmap_dispatch
CMAP_DISPATCH(3) Corosync Cluster Engine Programmer's Manual CMAP_DISPATCH(3)
NAME
cmap_dispatch - Dispatches callbacks from the CMAP service
SYNOPSIS
#include <corosync/cmap.h>
cs_error_t cmap_dispatch (cmap_handle_t handle, cs_dispatch_flags_t dispatch_types);
DESCRIPTION
The cmap_dispatch function is used to dispatch configuration changes.
Each application may have several connections to the CMAP API. Each application uses the handle argument to uniquely identify the connec-
tion.
The dispatch_types argument is used to identify the type of dispatch to execute. The possible types are CS_DISPATCH_ONE, CS_DISPATCH_ALL
and CS_DISPATCH_BLOCKING.
The dispatch values have the following meanings:
CS_DISPATCH_ONE
Dispatch at least one callback, blocking until the callback is dispatched.
CS_DISPATCH_ALL
Dispatch all waiting callbacks without blocking to wait for any callbacks.
CS_DISPATCH_BLOCKING
Dispatch all callbacks blocking indefinitely. This is used in a threaded program where a thread is created, and then cs_dispatch()
is called immediately from the created thread to execute callbacks.
CS_DISPATCH_ONE_NONBLOCKING
Dispatch at most one callback. If there is no pending callback, CS_ERR_TRY_AGAIN is returned.
It's needed to call cmap_track_add(3) to add tracked items and receive callbacks.
RETURN VALUE
This call returns the CS_OK value if successful, otherwise an error is returned.
SEE ALSO
cmap_track_add(3), cmap_track_delete(3), cmap_overview(8)
CS_ERR_TRY_AGAIN Resource temporarily unavailable
CS_ERR_INVALID_PARAM Invalid argument
CS_ERR_ACCESS Permission denied
CS_ERR_LIBRARY The connection failed
CS_ERR_INTERRUPT System call inturrupted by a signal
CS_ERR_NOT_SUPPORTED The requested protocol/functuality not supported
CS_ERR_MESSAGE_ERROR Incorrect auth message received
CS_ERR_NO_MEMORY Not enough memory to completed the requested task
corosync Man Page 23/01/2012 CMAP_DISPATCH(3)