[linux-l] Anfängerhilfe Script

Volker Wegert mail at volker-wegert.de
Do Sep 30 08:40:36 CEST 2010


Hallo.

Olaf Radicke <briefkasten at olaf-radicke.de> writes:
> Ich würde ein anderen Ansatz wählen. Ich würde ein cron-job schreiben
> der sich per "who" die Informationen holt wer eingelogt ist. Mit einer
> einfachen text-datei in /tmp/... kann man dann so was wie ein Zeitkonto
> verwalten.

Mit ac -d $USERNAME | grep Today | awk '{ print $3 }' sollte das einfacher
gehen...
 
HTH
  Volker

-- 
* Volker Wegert * http://www.volker-wegert.de/contact *
"With sufficient thrust, pigs fly just fine. However, this is not necessarily
a good idea. It is hard to be sure where they are going to land, and it could
be dangerous sitting under them as they fly overhead." (RFC 1925)



Mehr Informationen über die Mailingliste linux-l