Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any good ideas how to automatically log-off users ??
Message
De
08/09/1999 19:24:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00262619
Message ID:
00262661
Vues:
22
>>In order to do an occassional PACK of the DBC/DBFs, I wondered if there was a convenient way to log-off all users so I can get EXCLUSIVE use in the early morning hours.
>>
>>I wondered what would happen if the READ EVENTS command was in a
>>DO...WHILE loop that monitored the system clock
>>
>>i.e. At 1:00am, the program would run a shutdown routine.
>>
>>Any ideas or suggestions would be appreciated.
>
>You could also have NT or Netware log all of the users out at a certain time. Although, this is a little more brute force.

PMFJI: FWIW: Better be sure to have an ON SHUTDOWN setting for this that includes a CLOSE DATABASES -- or you can trash any open tables that have un-committed APPENDs, etc.... Particularly sensitive if using free tables and especially with memo fields... We have this problem often in our FP-DOS apps and rarely dare to "kick 'em out" from the Novell server console, as we have had damaged tables too often. Not much else can be done to trap for times in that if the user leaves it open in a wait state -- no read-events in FP-DOS...

In our VFP app, we use a timer object and tie it into every control in the base classes to monitor activity -- even replaced std messagebox()'s with custom code to allow monitoring -- due to company requirement of automatic shutdown of app after 15-minutes of inactivity... We tie that to our ON SHUTDOWN procedure, and it seems to work just fine.

Rob
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform