🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Una bobada. Ejecutar una tarea sólo cuando se haya hecho login

#6921
From: Han Solo
Date: Thu, 24 Apr 2003 18:20
34 lines
1968 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hola a todos.

Pues eso, un tonter�a. Se trata de que se ejecute una tarea en el cron
s�lo cuando el usuario est� dentro del sistema; un script que llame a
fetchmail para bajar el correo, vaya.

Lo del cron, s� como ponerlo, lo que no se me ocurre es c�mo comprobar
que el usuario est� en el sistema. Mejor dicho, se me ocurre hacerlo
con un grep a la salida de last, pero supongo que hay maneras m�s
elegantes..

Un Saludo a todos
- -- 
Han Solo
The Rebel Alliance

Emacs is not on every system

So what? [...] Do you tell your administrative people to stick with
notepad.exe? Do you tell your fat kids they can only have the crummy
games that come with their video games or plain dress that comes with
Barbie?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE+qCq/4FjpJaPEp20RAk2KAKCdUGKfjc+MJFUZqvRdhLUcEn7YRwCeIJq2
iXuVCetpdqiNZCyMceNcBno=
=lDRh
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <86y91z7o5n.fsf@escomposlinux.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!pc147.ietcc.csic.ES!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,2981dfb3aaf9184,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-04-25 01:30:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!pc147.ietcc.csic.ES!not-for-mail
From: Han Solo <hsolo@escomposlinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Una bobada. Ejecutar una tarea sólo cuando se
  haya hecho login
Date: 24 Apr 2003 20:20:36 +0200
Lines: 34
Message-ID: <86y91z7o5n.fsf@escomposlinux.org>
NNTP-Posting-Host: pc147.ietcc.csic.es (161.111.230.147)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1051259407 8584069 161.111.230.147 (16 [63837])
X-Orig-Path: 127.0.0.1!nobody
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7