I don't understand what the shell is passing as arguments to the ps command in this case. I tried escaping the |, the > and the $ in $?, but that didn't work. Maybe someone else would like to have a go.
Maybe it is because in your cat'd file, the command assigned to the variable HTTPD is not enclosed by backticks? When I run it as you have it displayed, I get the following error:
I am having a problem with awk when I run it with a loop. It works perfectly when I echo a single line from the commandline. For example:
echo 'MFG009 9153852832' | awk '$2 ~ /^0-9]$/{print $2}'
The Awk command above will print field 2 if field 2 matches 10 digits, but when I run the loop... (5 Replies)
Hi Guys,
could someone tell me what this ksh construct does
typeset -r PROG_PWD=${0%/*} does
I understand the -r for readonly but I would very much appreciate a definitive account of what this will set $PROG_PWD to.
If I run this at the cmd line it it gets set to /usr/bin but I would... (2 Replies)
Hi all,
I have a directory which has many sub-directories. Now, I want to check the space of each dir and redirect the output in a file if space exceeds the limit.
I have already done it, but the way I did is not very good. I just listed the directories and awked the last column to get the... (5 Replies)
Hi all,
Sorry to ask this easy question but I am stuck. In a scenario i am executing one shell script which contains a if - else construct :
if ; then
echo $line
$line >> successful_build.txt
else
$line >> failed_services.txt
fi
explaination : if the... (5 Replies)
Hi friends,
I'm newbie to SVM.
Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :(
the steps i've taken is as below:-
1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
2.metadb -a -c 3 -f c1t0d0s7... (3 Replies)
Hi all
i have been trying to do a small 'question and answer' script using if-else statement and a combination of pipe. I have succeeded in allowing the user to login with user name and password stored in a sequence username/password in a file named "pass" like this:
echo "please enter your... (14 Replies)
I have been trying to come up with a program that can do this:
Say I have a file named "sir" with a single field;
10
229
288
35
83
47
3
I want to create a file "gen" with three fields with the data in file "sire" listed in field 1 while field 2 and 3 are just 1 each like this:
SPARSE... (1 Reply)
Hi i just want to open 2 files and find difference between cond1 and cond2 and if the difference is greater than or equal to some number say 2 print the lines again in 2 different files.
file 1 (1.txt)
aqw dfr 34
poilo ggg 98
file 2 (2.txt)
qww asd 28
poilo ggg 97 open FILE1,"1.txt" or... (2 Replies)
Hi, guys,
What I want is exactly shown below (I modified the former image and it looks like clearer.)
https://lh6.googleusercontent.com/-EG8SKkrWEvc/Ube9e-jDiHI/AAAAAAAAAOM/hFNT0UqQPWE/s512/Linux_Study_20130611_001.jpg
And with some guys' help, I made it. My script is below:
#!/bin/bash
#... (20 Replies)
I need help. I am trying to get this script to send out only one email not multiple emails of the abend. Currently it will send me one then and ther with the first and second one then another email with the first second and third abend and so on. I only want one email sent.
... (2 Replies)
Discussion started by: bbcarosi
2 Replies
LEARN ABOUT PLAN9
httpd
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)