Sponsored Content
Top Forums Programming Need C program for monitoring a processes that are running in different nodes Post 302281961 by vigneshinbox on Thursday 29th of January 2009 11:21:33 PM
Old 01-30-2009
hey dude...
thanx for ur valuable response...
 

9 More Discussions You Might Find Interesting

1. Programming

C program to kill root processes

Hello, First let me start by saying I have searched the forum and read all the SUID stuff but it is not in the neighborhood I am looking for. Here is the problem. We want to grant a non super-user permission to kill root processes but only if the process matches certain criteria. ... (8 Replies)
Discussion started by: TioTony
8 Replies

2. Shell Programming and Scripting

Monitoring processes of another host

Does anyone have a script, which monitors the processes of another host? (5 Replies)
Discussion started by: Andimotz80
5 Replies

3. Shell Programming and Scripting

monitoring running processes

I have a script that runs continuously and will deliver a file to multiple servers via scp. On occasions one of the scp's will hang and as a result not complete in sending the remaining files and not loop around again. If I run the scp commands with a & they'll complete, but I want to make sure... (2 Replies)
Discussion started by: nhatch
2 Replies

4. UNIX for Advanced & Expert Users

Monitoring Processes - Killing hung processes

Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies)
Discussion started by: ukndoit
4 Replies

5. UNIX for Dummies Questions & Answers

monitoring 'waiting' processes

Is it possible to monitor processes whether they are waiting or active? Basically I would like to know since which TIME the process has been running and the state. :confused: (3 Replies)
Discussion started by: jon80
3 Replies

6. Programming

Program to spawn multiple processes

I'm trying to make a program that will spawn multiple child processes then exit. I'm having trouble figuring out how to do this since after I fork, the child process begins running the program again (never ending). int main(void){ for(int i = 0; i < 3; i++){ fork(); }... (1 Reply)
Discussion started by: cagney58
1 Replies

7. Shell Programming and Scripting

Cron job for monitoring processes

I have to monitor several processes in my application . i get the listing of these processes using the command ps -ax i want to write a shell script that will monitor the processes and if a process goes missing then it will send an email to my gmail account. I want to run this... (6 Replies)
Discussion started by: asalman.qazi
6 Replies

8. UNIX for Advanced & Expert Users

Monitoring cpu usage of mysql processes/threads/queries without any tool

hi all, i want to monitor mysql processes/threads/queries with respect to cpu usage.how can i do it? show processlist is of no use as no information abt cpu usage is given. plz help (7 Replies)
Discussion started by: rohitmahambre
7 Replies

9. Shell Programming and Scripting

Remote nodes - login and find number of processes

Hello all, This is my requirement: 1. I have 6 VMs running Apache (for Oracle EBS) as Linux user oracle. 2. From a central server (VM), I need to login to all the 6 VMs as oracle user (I have already set up ssh equivalence, so it is password less authentication). 3. Find the number of... (4 Replies)
Discussion started by: sunpraveen
4 Replies
Dancer::Response(3pm)					User Contributed Perl Documentation				     Dancer::Response(3pm)

NAME
Dancer::Response - Response object for Dancer SYNOPSIS
# create a new response object Dancer::Response->new( status => 200, content => 'this is my content' ); Dancer::SharedData->response->status; # 200 # fetch current response object my $response = Dancer::SharedData->response; # fetch the current status $response->status; # 200 # change the status $response->status(500); PUBLIC API
new Dancer::Response->new( status => 200, content => 'my content', headers => HTTP::Headers->new(...), ); create and return a new Dancer::Response object current my $response = Dancer::SharedData->response->current(); return the current Dancer::Response object, and reset the object exists if ($response->exists) { ... } test if the Dancer::Response object exists content # get the content my $content = $response->content; my $content = Dancer::SharedData->response->content; # set the content $response->content('my new content'); Dancer::SharedData->response->content('my new content'); set or get the content of the current response object status # get the status my $status = $response->status; my $status = Dancer::SharedData->response->status; # set the status $response->status(201); Dancer::SharedData->response->status(201); set or get the status of the current response object content_type # get the status my $ct = $response->content_type; my $ct = Dancer::SharedData->response->content_type; # set the status $response->content_type('application/json'); Dancer::SharedData->response->content_type('application/json'); set or get the status of the current response object pass $response->pass; Dancer::SharedData->response->pass; set the pass value to one for this response has_passed if ($response->has_passed) { ... } if (Dancer::SharedData->response->has_passed) { ... } test if the pass value is set to true halt Dancer::SharedData->response->halt(); $response->halt; halted if (Dancer::SharedData->response->halted) { ... } if ($response->halted) { ... } header # set the header $response->header('X-Foo' => 'bar'); Dancer::SharedData->response->header('X-Foo' => 'bar'); # get the header my $header = $response->header('X-Foo'); my $header = Dancer::SharedData->response->header('X-Foo'); get or set the value of a header headers $response->headers(HTTP::Headers->new(...)); Dancer::SharedData->response->headers(HTTP::Headers->new(...)); return the list of headers for the current response headers_to_array my $headers_psgi = $response->headers_to_array(); my $headers_psgi = Dancer::SharedData->response->headers_to_array(); this method is called before returning a PSGI response. It transforms the list of headers to an array reference. perl v5.14.2 2012-01-28 Dancer::Response(3pm)
All times are GMT -4. The time now is 03:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy