tail na par sekund

Radovan Garabik garabik na kassiopeia.juls.savba.sk
Úterý Březen 1 13:25:51 CET 2005


Jan Satko <satko na quanto.nr.sanet.sk> wrote:
> Zdravim.
> Potrebujem spravit skript ktory si nacita poslednych n(neviem dopredu
> kolko) riadkov z logu za nejaky cas. A netusim ako ho spravit. Kedze tail
> -f bezi "donemoty". Pod c-ckom sa myslim dala na taketo veci pouzit
> funkcia alarm. Ale pod shellom take nic nepoznam.
> Vdaka za kazdu radu.

lancre:/usr/local/bin# dpkg -p timeout
Package: timeout
Priority: optional
Section: admin
Installed-Size: 52
Maintainer: Andrew Stribblehill <ads na debian.org>
Architecture: i386
Source: tct
Version: 1.11-6.1
Replaces: tct (<= 1.07-2), netatalk (<< 1.5pre6-7)
Depends: libc6 (>= 2.3.2.ds1-4)
Conflicts: tct (<= 1.07-2), netatalk (<< 1.5pre6-7)
Filename: pool/main/t/tct/timeout_1.11-6.1_i386.deb
Size: 6230
MD5sum: 63b0f65009f46ef24c52842c64504f39
Description: Run a command with a time limit.
 timeout executes a command and imposes an elapsed time limit. When the
 time limit is reached, timeout sends a predefined signal to the target
 process.
   

-- 
 -----------------------------------------------------------
| Radovan Garabík http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__    garabik @ kassiopeia.juls.savba.sk     |
 -----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!


Další informace o konferenci Linux