7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hallow all i need your advice about this script
i have script like this:
INDEX=/zpool1/NFS/INDEX/${1}
SCRIPT=/zpool1/NFS/script/${1}
LIST=SAMPLE
cd ${SCRIPT}
for i in `cat ${LIST}`
do
GETDATE=`echo ${i}|awk '{print substr($1,9,8)}'`
/usr/xpg4/bin/awk -F ":" '{close(f);f=$4}{print >>... (4 Replies)
Discussion started by: zvtral
4 Replies
2. Programming
Hi,
Mentioned in Stevens & Rago "Advanced Programming in the UNIX"
I don't understand why must flush all line-buffered output streams when (a)an unbuffered or (b)a line-buffered stream require data from kernel? (2 Replies)
Discussion started by: Edward114
2 Replies
3. AIX
Hi all,
I have a AIX kernel STREAMS question need your help,
I need to implement a firewall on AIX and get packet raw data then decide pass or drop it,
I've seen similiar firewall code on HP-UX,
on HP-UX, you have to implement a "dlpi STREAMS driver", and specify it as a "dlpi" driver in... (1 Reply)
Discussion started by: rocktilldie
1 Replies
4. Shell Programming and Scripting
Here is an example code that shows the issue I have:
#!/bin/bash
counter() {
seq 1000 | while read NUM; do
echo $NUM
echo "debug: $NUM" >&2
sleep 0.1 # slow it down so we know when this loop really ends
done
}
counter | grep --line-buffered "" | head -n1
... (10 Replies)
Discussion started by: tokland
10 Replies
5. Programming
#include "../ourhdr.h"
int main(void)
{
int c;
char *buf;
setvbuf(stdin,buf,_IONBF,10);
setvbuf(stdout,buf,_IONBF,10);
while((c=getc(stdin)) != EOF)
{
if(putc(c,stdout) == EOF)
err_sys("output... (2 Replies)
Discussion started by: gandhevinod
2 Replies
6. SCO
Anybody have a clue what might have caused the Failures under Class 6? I did a reboot and so far so good, I had been up for about 55 days prior to the reboot. I'm running SCO_SV rel 3.2v5.0.7.
Steve
#netstat -m
streams... (1 Reply)
Discussion started by: Steve_93630
1 Replies
7. UNIX for Advanced & Expert Users
What are transparent ioctls messages and when and why we have to issue copyin or copyout kernel utilities with respect to ioctls calls to a Stream. (2 Replies)
Discussion started by: S.P.Prasad
2 Replies
TIDY-PROXY(1) tidy-proxy manual TIDY-PROXY(1)
NAME
tidy-proxy - small http proxy which tidies html
SYNOPSIS
tidy-proxy [ --host hostname] [ -p port] [ -d] [ -l {1|2}] [ --action {t|v}] [ --tidy-cmd tidy-command] [ --validate-cmd validate-command]
[ --pid pid-file]
DESCRIPTION
tidy-proxy is a small proxy server written in perl. using this proxy web-pages are checked for HTML errors with tidy or validate while they
are downloaded. The results are displayed on top of that page. tidy-proxy is mainly intended for developing dynamic web-pages.
OPTIONS
--host *host*
the host parameter sets the listening address for tidy-proxy. [default: localhost]
-p, --port *port*
port sets the listening port for tidy-proxy. [default: 9090]
-d, --nodaemon
run tidy-proxy in foreground
-l, --level *level*
level sets the filtering level for tidy-proxy 1: Warnings 2: Errors
--action *t|v*
set if to use *t*idy or *v*alidate. [default: tidy]
--tidy-cmd *cmd*
Command to use for tidy. [default: /usr/bin/tidy]
--validate-cmd *cmd*
Command to use for validate. [default: /usr/bin/validate]
--pid *pid-file*
Create a pid file. Works only in daemon mode.
--dest-host *destination host*
run tidy-proxy in reverse-proxy mode. tidy-proxy acts as normal webserver and forwards every request to *destination host*.
--loc-rewrite
rewrite the Location and the Host header in reverse-proxy mode.
-h, -?, --help
Prints help message.
SEE ALSO
tidy(1), validate(1)
AUTHOR
This manual page was written by Jonas Meurer jonas@freesources.org for the Debian distribution of tidy-proxy.
COPYRIGHT
Copyright (C) 2003-2008: Jonas Meurer jonas@freesources.org This manual page is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free Software Foundation; version 2. This program is distributed in
the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
tidy-proxy 0.97-4 2011-04-09 TIDY-PROXY(1)