Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining processes on a server
Message
De
20/02/2004 05:50:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00879100
Message ID:
00879104
Vues:
15
>> I have an application on a server and I would like to know remotely if somebody is running that application. My application is called flusher. Therefore everytime somebody uses the application a process is created called flusher.exe. Is there anyway I can read the list of processes with the user and hostname of the machine that is accessing the executable fiel <<

Neil,

I've not found a way to view processes (if someone knows one I'm interested to!)

We got round it by having our application create a "flag" file when it started and delete it when it exits.

The app puts the users IP / Name / Machine Name and start date/time in the flag file as plain text.

We then wrote a simple app that reads the flags and displays a listing. The only problem is if someone CTRL+ALT+Del on your app but you can spot dead applications by the start date time.

You could expand this so that the app updated the date/time periodically. Our also checks for a "Shutdown" flag and if it sees it closes itself down.

Hope that helps


Gary.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform