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
POLIPO(1) General Commands Manual POLIPO(1)
NAME
polipo - a caching web proxy
SYNOPSIS
polipo [ -h | -v | -x ] [ -c config ] [ var=val ]...
DESCRIPTION
Polipo is a caching HTTP proxy. It listens to requests for web pages from your browser and forwards them to web servers, and forwards the
servers' replies to your browser. In the process, it optimises and cleans up the network traffic.
By default, Polipo listens on TCP port 8123. Please configure your web browser to use the proxy on localhost port 8123.
OPTIONS
-h Display help and exit.
-v Display the list of configuration variables and exit.
-x Purge the on-disk cache and exit.
-c Select an alternate configuration file.
var=val
Change the value of a configuration variable.
FILES
/etc/polipo/config
The default location of Polipo's configuration file.
/etc/polipo/forbidden
The default location of the list of forbidden URLs.
/var/cache/polipo/
The default location of the on-disk cache.
/usr/share/polipo/www/
The default root of the local web space.
SIGNALS
SIGUSR1
write out all in-memory objects to disk and reload the forbidden URLs file.
SIGUSR2
write out all in-memory objects to disk, discard all in-memory objects, and reload the forbidden URLs file.
SIGTERM, SIGINT, SIGHUP
write out all in-memory objects to disk and quit.
SECURITY
The internal web server will follow symbolic links that point outside the local document tree. You should run Polipo in a chroot jail if
that is a problem.
There is no reason to run Polipo as root.
FULL DOCUMENTATION
The full manual for Polipo is maintained in a texinfo file, and is normally available through a web server internal to Polipo. Please make
sure that Polipo is running, and point your favourite web browser at
http://localhost:8123/
Alternatively, you may type
$ info polipo
at a shell prompt, or
C-h i m polipo RET
in Emacs.
AUTHOR
Polipo was written by Juliusz Chroboczek.
POLIPO(1)