Information générale
Catégorie:
Codage, syntaxe et commandes
>> 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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement