[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: [GRAFIK] Tjekke om der er adgang til X (fra crontab)



Fredag den 17. juni 2005 10:20 skrev Jacob Sparre Andersen:
> Jeg har nogle programmer jeg gerne vil køre fra min "crontab" i stedet for
> at de kun bliver kørt når jeg logger ind i X eller kalder dem eksplicit.
>
> Problemet er at de har brug for adgang til X.  Og hvis de ikke har adgang
> til X skal de lægge nogle opgaver i kø.  Derfor har jeg brug for en måde
> til at tjekke  om programmerne har adgang til at bruge en bestemt skærm (i
> praksis altid »localhost:0.0«).
>
> Hvordan kan jeg gør det uden at forstyrre brugeren?  Jeg har overvejet at
> lade prøven være et forsøg på at ændre baggrundsbilledet, men jeg vil
> foretrække en mere usynlig løsning.  Nogle forslag?

Du kunne jo prøve at køre xdpyinfo -display DISPLAY - hvis den fejler har du
ikke adgang, ellers har du.

Der er sikkert en mere ren test, men det er da ellers ret simpelt.

Mads

--
Mads Bondo Dydensborg


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:51 CEST [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] *