Hey guys, thanks for all your help. I just need to ask one more question.
The script works and detects whether or not fmxdbc_listener is running, ECHOs the results to the log, and if negative, fires up fmxdbc_listener. But it doesn't work when fired up by launchd (I take it this is the new 'cron').
I'm guessing it has to do with the account permissions that launchd fires it up with.
I believe the -u means start it with the current user, which is correct when I trigger it manually but I'm guessing not so when launchd fires it off.
Hi Everybody,
I want to create a shell script named as say "jip" and it is runned.
And i want that when i do ps + grep for the process than this jip should be shown as process.
Infact there might be process with name jip which is already running. (3 Replies)
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)
please suggest me a way to write c program that takes pattern of the process and returns true or false
my case is i need to keep track of dhcpcd
dhcpcd -d eth1
so i tried popen("ps -ef | grep dhcpcd | grep eth1 | wc -l", "r");
but pipe is storing 1 or 2 when not running
and 2 or 3... (7 Replies)
I have been having some trouble trying to get some code working, so I was wondering...what system calls are required to execute a different program from an already running process? (1 Reply)
I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is... (2 Replies)
Hello All,
We are running a process in unix box. This is how we will do
1.our process name is Runprojectprocess <ID> configuration
2.We will be running upto 500 id at once. So we are populating a text file as Runprojectprocess 1 configuration to Runprojectprocess 500 configuration
3.... (2 Replies)
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)
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... (1 Reply)
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... (6 Replies)
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 MOJAVE
xpc
xpc(3) BSD Library Functions Manual xpc(3)NAME
xpc -- a structured, asynchronous interprocess communication library
SYNOPSIS
#include <xpc/xpc.h>
DESCRIPTION
The XPC framework facilitates interprocess communication using structured messages. Messages are structured using property list style objects
such as dictionaries, arrays, strings, integers and UUIDs. Out-of-line types such as file descriptors and shared memory regions are also sup-
ported. The root object of each message is a dictionary.
Messages are sent via connections created using xpc_connection_create(3) and xpc_connection_create_mach_service(3).
XPC significantly leverages the on-demand process management features of launchd(8) to provide transparent process life-cycle management. As
such, clients of the XPC framework have little to no responsibility for managing their corresponding service processes.
Consequently, there is no facility in XPC to directly query the execution status of a service. XPC services are simply made available when
they are needed, so clients needn't be concerned with remote process state.
Dynamic service registrations (ala bootstrap_register(), bootstrap_create_service() and bootstrap_create_server()) are also purposefully dis-
allowed.
XPC's integration with launchd(8) also extends to being able to launch jobs on-demand with higher-level events than have been historically
available. Using XPC and launchd together, jobs can be launched based on events in IOKit or the posting of BSD Notifications.
SEE ALSO xpc_object(3), xpc_main(3), xpc_connection_create(3), xpc_connection_create_mach_service(3), xpc_dictionary_create(3), xpc_array_create(3),
xpc_objects(3), xpc_events(3), xpc_abort(3), xpcproxy(8), notify(3), launchd(8)Darwin 1 July, 2011 Darwin