🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #9222

probandolo + inews

#9222
From: Javi Pardo (DAKOTA-ECOLNET)
Date: Tue, 27 Aug 2002 14:35
75 lines
4072 bytes
#!/bin/sh
###########################################################
#
#       ESTADISTICAS NEWS V 1.0beta2patchleve3
#
#       creado by: Javi Pardo <dakota@dakotabcn.net>
#
#       licencia: GPL 2.0
#
#########################################################
clear
echo -e "\t\t Generador de Estadisticas 1.0beta2patchlevel3"
echo -e "\t\t by EcolNet Group"
echo -e "\t\t\t Copyright (C) 2002 Javi Pardo y otros ;)"
PATH_ART_NEWS=/var/spool/news/articles/
turq=/usr/local/bin/turqstat
fichero=$HOME/.estadistica/estadistica.tmp
lista_grupos=$HOME/.estadistica/lista.grupos
sed -e's/\./\//g' $lista_grupos | while read GRUPO resto
echo $lista_grupos
do
        echo ${PATH_ART_NEWS}${GRUPO}
        $turq -u $fichero ${PATH_ART_NEWS}${GRUPO} #> /dev/null
#        cat $fichero | inews -h -O f:dakota@escomposlinux.org t:ESTADISTICA
o:"ECOLNET NEWS" (esta mal asi que la cancele)
done

se me queda colgado de esta manera
/home/dakota2/.estadistica/lista.grupos
/var/spool/news/articles/dakota/pruebas
Turquoise 2.2 - Statistics tool for Fidonet and Usenet message bases
(c) Copyright 1998-2001 Peter Karlsson. GNU GPL 2 licensed.
A Softwolves Software Release in 2001.

Finished reading /var/spool/news/articles/dakota/pruebas
Wrote /home/dakota2/.estadistica/estadistica.tmp
Turquoise finished.
Usage: inews [-D] [-h] [header_flags] [article]

/home/dakota2/.estadistica/lista.grupos
/var/spool/news/articles/dakota/pruebas
Turquoise 2.2 - Statistics tool for Fidonet and Usenet message bases
(c) Copyright 1998-2001 Peter Karlsson. GNU GPL 2 licensed.
A Softwolves Software Release in 2001.

y de golpe me sale muchas lineas haciendo esto

Finished reading /var/spool/news/articles/
Wrote /home/dakota2/.estadistica/estadistica.tmp
Turquoise finished.
/home/dakota2/.estadistica/lista.grupos
/var/spool/news/articles/
Turquoise 2.2 - Statistics tool for Fidonet and Usenet message bases
(c) Copyright 1998-2001 Peter Karlsson. GNU GPL 2 licensed.
A Softwolves Software Release in 2001.

Finished reading /var/spool/news/articles/
Wrote /home/dakota2/.estadistica/estadistica.tmp
Turquoise finished.
/home/dakota2/.estadistica/lista.grupos
/var/spool/news/articles/
Turquoise 2.2 - Statistics tool for Fidonet and Usenet message bases
(c) Copyright 1998-2001 Peter Karlsson. GNU GPL 2 licensed.
A Softwolves Software Release in 2001.

Finished reading /var/spool/news/articles/
Wrote /home/dakota2/.estadistica/estadistica.tmp
 hasta que hago ctrl +c
me imagino que es pq sigue haciendolo sin detectar que NO hay mas grupos....

lo del bucle ni pajolera de como funciona... digamos que no se como funciona
(veo un Whiile pero de la forma que ta me desconcierta)

bueno yo miro lo del inews... que eso seguro que se hacerlo jejejej
Technical Details
Message-ID: <akg2o5$v0r$1@dakota.dakotabcn.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!central.cox.net!cox.net!antonio.escomposlinux.org!julieta.escomposlinux.org!dakota.dakotabcn.net!dakotabcn.net!not-for-mail
References: <akdtnk$rov$1@dakota.dakotabcn.net> <ake5s9$kv2$2@dakota.dakotabcn.net> <87hehh6vjp.fsf@barad-dur.escomposlinux.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f86c8,9c3a70dd1b4ee32c
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-08-27 07:35:52 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!central.cox.net!cox.net!antonio.escomposlinux.org!julieta.escomposlinux.org!dakota.dakotabcn.net!dakotabcn.net!not-for-mail
From: "Javi Pardo \(DAKOTA-ECOLNET\)" <dakota@escomposlinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: probandolo + inews
Date: Tue, 27 Aug 2002 16:35:35 +0200
Organization: Administrador de Dakota (SYSOper)
Lines: 78
Sender: dakota@mustang.dakotabcn.net
Message-ID: <akg2o5$v0r$1@dakota.dakotabcn.net>
References: <akdtnk$rov$1@dakota.dakotabcn.net> <ake5s9$kv2$2@dakota.dakotabcn.net> <87hehh6vjp.fsf@barad-dur.escomposlinux.org>
NNTP-Posting-Host: mustang.dakotabcn.net
X-Trace: dakota.dakotabcn.net 1030458949 31771 192.168.0.50 (27 Aug 2002 14:35:49 GMT)
X-Complaints-To: news@dakotabcn.net
NNTP-Posting-Date: 27 Aug 2002 14:35:49 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000