[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Dynamisk symbolsk link?



Jeg kan ikke lige se hvordan man kan gøre det let.

En (stor) løsning kunne være at skrive en daemon som overvågede biblioteket
vha FAM ( http://en.wikipedia.org/wiki/File_alteration_monitor ), og så
opdaterede et symlink hver gang biblioteket ændrede sig.

Hilsen Thue

2009/12/14 Kristian Nørgaard <sslug@sslug>

> Jeg har et log bibliotek med et stort antal log filer, og nye kommer hele
> tiden til. Det kunne være cool med et dynamisk symlink, det altid peger på
> den seneste log fil.
>
> Hvilke muligheder har jeg...?
>
> Jeg har forsøgt med et alias a la:
>
> alias lastlog="ls -t -1  /PATH/TO/LOGFILES/*.log | head -n1"
>
> ... men her kan jeg jo ikke bruge lastlog helt transperent som en fil:
>
> F.eks kan jeg ikke skrive
>
> $ cat lastlog
>
> men må naturligvis skrive
>
> $ cat `lastlog`
>
> / Kristian
>
>
>
>
>


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *