09-20-2001
exactly what is means. httpd.pid= httpd process ID
if you cat the file it will have a small number string in it. if you did a ps -ef|grep <that number> it will show that is the parent process id for your httpd
10 More Discussions You Might Find Interesting
1. Programming
question: for the below program
i just printed the value for pid, child pid and parent pid
why does it give me 6 values? i assume ppid is 28086
but can't figure out why there are 5 values printed instead of just two!
can someone comment on that!
#include<stdio.h>
#define DIM 8
int... (3 Replies)
Discussion started by: a25khan
3 Replies
2. UNIX for Dummies Questions & Answers
1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection?
2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies
3. UNIX for Dummies Questions & Answers
Hello
I need to retrieve the content of a file in the shell script file(.sh file).
I store the Process ID of the a process in file.Only the PID is available in that file.
Inside the shell script i want to retireve the content(PID) and need to check for the existence of the Process.Basically... (5 Replies)
Discussion started by: appleforme1415
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this.
Thanks in advance,
Amudha (7 Replies)
Discussion started by: samudha
7 Replies
5. UNIX for Advanced & Expert Users
Hi All,
My target is to find the biggest files opened by any process and from that i have to find process id and the corresponding file also.
To get the process id which is accessing the biggest file in the given file system, i am using the below command.
pid=`lsof -s /home/arun/my_work |... (4 Replies)
Discussion started by: Arunprasad
4 Replies
6. Shell Programming and Scripting
Hi,
I am a newbie to shell scripting and to Linux environment as well.
In my project I am trying to search for following text from the httpd.conf file
<Directory '/somedir/someinnerdir'>
AllowOverride All
</Directory>
and then remove this text and again rewrite the same text.
The... (1 Reply)
Discussion started by: bhushan
1 Replies
7. AIX
Hi all,
I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/.
I tried the following:
kill -3 9404940>/tmp/dump/out.txt
But it created... (3 Replies)
Discussion started by: haroon_a
3 Replies
8. UNIX for Dummies Questions & Answers
Hello,
is there a way to check who is writing to a file? (pid)
Like someone starts a ftp transfer, is uploading a file and I'd need to know which pid is actually writing to it.
Or is there a way to check which file a process is currently accessing?
Greetings and thanks for all your... (4 Replies)
Discussion started by: TehOne
4 Replies
9. Shell Programming and Scripting
I have 3 files namely run1.cmd, run2.cmd & run3.cmd
more run1.cmd
cd /tmp/scripts/app1/
nohup ./startserver.sh &
more run2.cmd
cd /tmp/scripts/app2/
nohup ./startserver.sh &
more run3.cmd
cd /tmp/scripts/app3/
nohup ./startserver.sh &
These scripts are kept on my ansible... (3 Replies)
Discussion started by: mohtashims
3 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am running ubuntu14.04
What I am trying to do is restart a process with a shell when pid is dead.
I restored pid nr in a file and check with ps aux | grep -v grep | grep $(cat *.pid)| awk '{ print $2 }'
While surfing on google, I have found an answer saying that restoring pid in a... (2 Replies)
Discussion started by: baris35
2 Replies
LEARN ABOUT DEBIAN
micro-httpd
micro-httpd(8) User Commands micro-httpd(8)
NAME
micro-httpd - really small HTTP server
SYNOPSIS
micro-httpd DIRECTORY
OPTIONS
None.
DESCRIPTION
micro-httpd is a very small HTTP server all in 150 lines of code. It runs from inetd, which means its performance is poor. But for low-
traffic sites, it is quite adequate. It implements all the basic features of an HTTP server, including:
* Security against ".." filename snooping.
* The common MIME types.
* Trailing-slash redirection.
* index.html
* Directory listings.
To install it, add a line like this to /etc/inetd.conf:
micro-http stream tcp nowait nobody
/usr/sbin/micro-httpd micro-httpd dir
Make sure the path to the executable is correct, and change "dir" to be the directory you want to serve. You could add line like this to
/etc/services:
micro-http port/tcp #Micro HTTP server
Change "port" to the port number you want to use: 80, 8000, whatever. Restart inetd by sending it a "HUP" signal.
On some systems, inetd has a maximum spawn rate - if you try to run inetd services faster than a certain number of times per minute, it
assumed there is either a bug of an attack going on and it shuts down for a few minutes. If you run into this problem - look for syslog
messages about too-rapid looping - you will need to find out how to increase the limit. Unfortunately this varies from OS to OS. On
FreeBSD, you add a "-R 10000" flag to inetd's initial command line. On some Linux systems, you can set the limit on a per-service basis in
inetd.conf, by changing "nowait" to "nowait.10000".
Note that you can use micro-httpd to serve HTTPS, if you like, by running it from stunnel. First fetch and install stunnel - FreeBSD users
can just go to /usr/ports/security/stunnel and do a "make cert ; make install". Then as root run:
stunnel -p /usr/local/certs/stunnel.pem -d 443 -l
/usr/sbin/micro-httpd -- micro-httpd dir
Make sure the paths to the certificate and executable are correct, and again don not forget to change "dir" to the directory you want to
serve.
ENVIRONMENT
None.
FILES
None.
SEE ALSO
inetd(8) micro-inetd(8) xinetd(8)
AUTHORS
Copyright (C) 1999 Jef Poskanzer <jef@mail.acme.com>. All rights reserved.
This manual page was updated by Jari Aalto <jari.aalto@cante.net>. Released under license GNU GPL v2 or (at your option) any later
version. For more information about license, visit <http://www.gnu.org/copyleft/gpl.html>.
micro-httpd 2012-04-03 micro-httpd(8)