Sponsored Content
Top Forums Shell Programming and Scripting Tracking process via ps command Post 302853441 by MadeInGermany on Saturday 14th of September 2013 11:59:49 AM
Old 09-14-2013
Code:
pgrep '^httpd$'

is the same as
Code:
pgrep -x httpd

Instead of -n (newest) I would take -o (oldest), or pick the one that is spawned by init (PID 1)
Code:
pgrep -P 1 -x httpd

NB in Solaris zones the latter does not work because init is not 1 (and even got a different name).
This User Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

process command

I'm looking for a specific command to extract the libraries linked to a specific process. Would someone get an idea ?? (2 Replies)
Discussion started by: tonoche
2 Replies

2. UNIX for Advanced & Expert Users

Command Tracking

Hi, OS: Solaris9, SPARC Is there any way I can track the commands run by users from the shell prompt? Example: Somebody is deleting files from the system. Who it is is a mystery. That person obviously does not use bash prompt so there is no history. Is there anyway I can find out who... (5 Replies)
Discussion started by: mahatma
5 Replies

3. Shell Programming and Scripting

Process ID of Command

I need a way to get the Process ID of the last command I executed in a script. Not the last background process but the last command. For example, suppose I am executing a binary inside a script like so. binary.program argument1 argument2 If this binary program runs fast, is there a... (4 Replies)
Discussion started by: scotbuff
4 Replies

4. UNIX for Advanced & Expert Users

Tracking user

dear all, I'm facing problem that is i have noticed from few days back that some body is deleting and making changes in the file from developement server where i'm working(in unix) so i want to track that who is using the server, what performancr they are doing and each every thing which r... (5 Replies)
Discussion started by: panknil
5 Replies

5. UNIX for Advanced & Expert Users

Tracking down the problem

Is there a way to track down what process is sending to a certain port? I have some thing pounding the network with requests to a multicast IP that doesn't exist. I have shut down all comms related processes and yet it is still there. Need a way to track the port or IP back to the process. Thanks... (3 Replies)
Discussion started by: mattmanuel
3 Replies

6. IP Networking

Routing by connection tracking

Hello, I have switch port, that allows only a single MAC/IP connected to it. - But, I would like to connect two hosts, without any additional private network. (No NAT.) Therefore the plan is adding a linux router doing proxy-arp with three interfaces, one for host1, one for host2 and one... (2 Replies)
Discussion started by: michas
2 Replies

7. Red Hat

Tracking Process to a particular

I've tried to see what I can find on my own but I'm coming up with goose eggs. Basically I was wondering if there was a way of querying the scheduler (or something similar) to track a process back to a particular CPU it's executing on at the time of the command. ps has a "cpu" output option but... (1 Reply)
Discussion started by: thmnetwork
1 Replies

8. Shell Programming and Scripting

Tracking users through history command

Hi folks, I have the basic query that there are 3 unix boxes having their individual access now in my team there are 4 members who are using the same credentials to access those 3 boxes through putty ssh from their windows desktop , now if i want to check which 4 members have executed the... (1 Reply)
Discussion started by: punpun66
1 Replies

9. UNIX for Advanced & Expert Users

Issue with tracking successful completion of Child process running in background

Hello All, I am using Linux. I have two scripts: inner_script.ksh main_wrapper_calling_inner.ksh Below is the code snippet of the main_wrapper_calling_inner.ksh: #!/bin/ksh ppids=() ---> Main array for process ids. fppids=() ---> array to capture failed process ids. pcnt=0 --->... (5 Replies)
Discussion started by: dmukherjee
5 Replies

10. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

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
httpd(8)						      System Manager's Manual							  httpd(8)

NAME
httpd - Apache hypertext transfer protocol server SYNOPSIS
httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] httpd [ -h ] [ -l ] [ -L ] [ -v ] [ -V ] [ -t ] [ -X ] DESCRIPTION
httpd is the Apache HyperText Transfer Protocol (HTTP) server program. It is designed to be run as a standalone daemon process. When used like this it will create a pool of child processes to handle requests. To stop it, send a TERM signal to the initial (parent) process. The PID of this process is written to a file as given in the configuration file. This manual page only lists the command line arguments. For details of the directives necessary to configure httpd see the Apache manual, which is part of the Apache distribution or can be found at http://httpd.apache.org/. Paths in this manual may not reflect those compiled into httpd. OPTIONS
-d serverroot Set the initial value for the ServerRoot directive to serverroot. This can be overridden by the ServerRoot command in the con- figuration file. The default is /etc/httpd. -f config Execute the commands in the file config on startup. If config does not begin with a /, then it is taken to be a path relative to the ServerRoot. The default is conf/httpd.conf. -C directive Process the configuration directive before reading config files. -c directive Process the configuration directive after reading config files. -D parameter Sets a configuration parameter which can be used with <IfDefine>...</IfDefine> sections in the configuration files to condi- tionally skip or process commands. -h Output a short summary of available command line options. -l Output a list of modules compiled into the server. -L Output a list of directives together with expected arguments and places where the directive is valid. -S Show the settings as parsed from the config file (currently only shows the virtualhost settings). -t Run syntax tests for configuration files only. The program immediately exits after these syntax parsing with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host configuration will be printed. -v Print the version of httpd , and then exit. -V Print the version and build parameters of httpd , and then exit. -X Run httpd in debug mode. Only one worker will be started and the server will not detach from the console. FILES
/etc/httpd/conf/httpd.conf /etc/mime.types /etc/httpd/conf/magic /var/log/httpd/error_log /var/log/httpd/access_log /var/run/httpd.pid February 1997 httpd(8)
All times are GMT -4. The time now is 08:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy