[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?



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...?
>

skapa ett job i crontab som gör

last_log_name=$(ls -t -1  /PATH/TO/LOGFILES/*.log | head -n1)
rm -f $last_log_name
ln -s $last_log_name
varje minut?


inte särskilt elegant, men en möjlighet

Kanske bara skapa om länken om det kommit någon nyare logfil?

Thues lösning är elegantare....
-- 
/Björn


 
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] *