🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BASH

#12233
From: Francisco F. Artese
Date: Sat, 18 Aug 2001 01:16
44 lines
2482 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Luigi <roberto_gamonal@hotmail.com> escribi�:
> hola,
> con expr, no recuerdo la sintaxis exacta, mejor mira la ayuda.

> salu2

Bueno .. muchas gracias a todos ya he resuelto mi problema que era poder
informarme despu�s de terminar la conexi�n cuanto tiempo dur� esta.

si a alguien le interesa esta tonter�a paso e relatar que me quedo.

- --------------------------------------------------------------
#!/bin/bash
poff -a
echo Conexi�n Cortada
lee conexi�n cortada.
sudo -u root tail /var/log/daemon.log | grep time > ~/timecon
sudo -u root killall tail 2> /dev/null
tt=`cat ~/timecon`
ttime=`echo "$tt" | cut -f8 -d" " | cut -f1 -d" "`
lee el tiempo de conexi�n fu� de $ttime minutos.
- --------------------------------------------------------------
Este es mi script para cortar la conexi�n de dialup.

Saludos

- -- 
 WinError 01F: Reserved for future mistakes of our developers.
==============================================================
   Francisco F. Artese - Linux user #174223 - ICQ #17693614
            Linux Debian Potato 2.2 and IceWM 1.0.3
	         LAS MALVINAS SON ARGENTINAS!
==============================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7fcHhkdq1r8MtrroRAgq7AJwPw3G23egV05AZ4YHHWOs+jrVlzwCcDNGA
ckH/5NY/ohNxOg3QeVj1vJI=
=itBK
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <2lfkl9.rl6.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!200.68.207.142!not-for-mail
References: <3edhl9.ec3.ln@127.0.0.1> <998074303.850960@usproxy1>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b00c3e5185002391
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-08-17 18:19:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!200.68.207.142!not-for-mail
From: "Francisco F. Artese" <frank@artese.com.ar>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: BASH
Date: Fri, 17 Aug 2001 22:16:18 -0300
Lines: 44
Message-ID: <2lfkl9.rl6.ln@127.0.0.1>
References: <3edhl9.ec3.ln@127.0.0.1> <998074303.850960@usproxy1>
NNTP-Posting-Host: 200.68.207.142
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 998097548 10379470 200.68.207.142 (16 [42069])
X-Orig-Path: not-for-mail
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.2.17 (i686))