03-28-2012
@Mark : Yes that is what i know.
Why pstree and ps command output is different?
9 More Discussions You Might Find Interesting
1. Programming
Hi,
Can anybody solve this query?
A parent process forks 2 child processes. How does the child process know it's PID without the parent process sending it.
Apart from the "ps-ef" option, what other options are there if any? (2 Replies)
Discussion started by: skannan
2 Replies
2. 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
3. Shell Programming and Scripting
I am using ZSH shell in Linux.
I am calling a child program in background mode parallely (say 2-3 threads). I have problem in handling the temporary files of these child programs since the temp file names are unique for all the child process.
To distinguish i want to use the pid in the temp... (3 Replies)
Discussion started by: dhams
3 Replies
4. UNIX for Dummies Questions & Answers
I need to sort the particular column only in reverse order how i can give it..
if i give the -r option the whole file is getting sorted in reverse order.
1st 2nd col 3rd
C col 4th col 5th col
-------------------------------------------
C... (7 Replies)
Discussion started by: sivakumar.rj
7 Replies
5. Shell Programming and Scripting
Hi,
I'm looking for a method where we can capture the PID and if possible the progress of child process especially the ones running in background.
can anyone help? (6 Replies)
Discussion started by: aman jain
6 Replies
6. Shell Programming and Scripting
i am having lines like below seperated by "|" (pipe)
abc|xyz
123|567
i have to get the above in reverse order
xyz|abc
567|123
Pls help (5 Replies)
Discussion started by: suryanarayana
5 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I need to make an program that in a loop creates one parent and five children with fork(). The problem i'm trying to solve is how to delete the parent and child of the childīs process.
2. Relevant commands, code, scripts,... (0 Replies)
Discussion started by: WhiteFace
0 Replies
8. Shell Programming and Scripting
Hi,
I want to print the item in reverse order such that the output would look like
00 50 50 23 40 22 02 96
Below is the input:
00 05 05 32 04 22 20 69
Video tutorial on how to use code tags in The UNIX and Linux Forums. (5 Replies)
Discussion started by: reignangel2003
5 Replies
9. Shell Programming and Scripting
HI
Am trying to get child process id for a PID using ksh..
ps -ef | grep xntpd
root 3342472 2228308 0 12:17:40 - 0:00 /usr/sbin/xntpd
root 4522024 6488316 0 12:18:56 pts/0 0:00 grep xntpd
root 6291614 3342472 0 12:17:40 - 0:00 /usr/sbin/xntpd
Here now i... (1 Reply)
Discussion started by: Priya Amaresh
1 Replies
HTTPD(8) System Manager's Manual HTTPD(8)
NAME
httpd, echo - HTTP server
SYNOPSIS
http/httpd [ -n namespace ] srvname netname netdir
http/echo [ -n namespace ] [ -d domain ] [ -r remoteip ] method version uri [ search ]
DESCRIPTION
Httpd serves the file system described by namespace (default /lib/namespace.http), using version 1.0 of the HTTP protocol. It is usually
executed by listen(8) in response to an incoming call on TCP port 80, the HTTP port. Srvname is the name of the service invoked, typically
tcp80, netname is the name of the network, typically TCP, and netdir is the network directory for the connection.
Httpd supports only the GET and HEAD methods of the HTTP protocol. The Content-type (default application/octet-stream) and Content-encod-
ing (default binary) of a file are determined by looking for suffixes of the file name in /sys/lib/http.
If the requested URI begins with /magic/server/, httpd executes the file /bin/http/server to finish servicing the request. Method, ver-
sion, and uri are those received on the first line of the request, which is the only line read by httpd before executing the magical
server.
Echo is a trivial server that just returns the method, URI, any search, and the headers sent by the client.
FILES
/sys/lib/http
content type description file
/lib/namespace.http
default namespace file for httpd
SOURCE
/sys/src/cmd/httpd
SEE ALSO
newns in auth(2), listen(8)
HTTPD(8)