How do you do....it? Thread, Check program is running regularly? in Technical; We run papercut to manage our printers and at logon using a script the software loads so that they have ...
-
8th September 2008, 03:19 PM #1 Check program is running regularly?
We run papercut to manage our printers and at logon using a script the software loads so that they have to use pincode etc to print out anything.
Problem is the software seems to randomly shut down and then users cannot print.
What i need is to be able to have something running on the pc's to check it's running and if not to restart it.
Anyone know of anything like this?
-
-
IDG Tech News
-
8th September 2008, 04:39 PM #2 Is it a service or an application?
-
-
8th September 2008, 04:46 PM #3
-
-
8th September 2008, 04:57 PM #4 Hmm, I don't I'm afraid. You could turn it into a service, and then you can configure recovery for it:
How To Create a User-Defined Service
Edit: I just read your OP again, and realised it's a user application not a server
in which case that's probably not very helpful. Sorry.
-
-
8th September 2008, 05:34 PM #5 
Originally Posted by
dave.81
What i need is to be able to have something running on the pc's to check it's running and if not to restart it.
What you actually need is software that doesn't crash, but couldn't you write a script to parse the output of the "tasklist" command and check if the application you are interested in is still running?
--
David Hicks
-
-
8th September 2008, 05:38 PM #6 If you have any programming knowledge, an AutoIt script compiled into an executable will be ideal.
-
-
8th September 2008, 06:26 PM #7 script
You could use wmi to check the process by name of the exe and see if its currently running and get the windows scheduler to run every so often in the background and if it is not running the script can make it re launch.
If this runs as a service in the background on each client machine then you should be able to go to services.msc and get the service to relaunch should it crash ( am guessing there might be something you could do via GPO to set this anyway )
-
-
9th September 2008, 09:47 AM #8 Thanks for the advice guys. It used to work perfectly but the server is a little iffy and does lock up occasionally which i think is the main cause of the program stopping. Just cannot do anything about it until i've got the replacement up and running during half term.
Will have a play around see which of the ideas i can get to work.
Thanks again.
-
-
10th September 2008, 07:03 AM #9 Ive doen this for other reasons (and suprised to hear that the papercut agent dies - its run imaculatley for me over many years).
autoIT is the way to go here - it has a function named processExist() -- thats half the script right there!! my scripts are literally 5 || 6 lines long so its a simple task.
-
SHARE: 
Similar Threads
-
By reggiep in forum Network and Classroom Management
Replies: 2
Last Post: 17th July 2008, 01:02 PM
-
By zike in forum Jokes/Interweb Things
Replies: 3
Last Post: 11th June 2008, 12:41 PM
-
By beeswax in forum General Chat
Replies: 3
Last Post: 11th July 2006, 10:20 PM
-
Replies: 5
Last Post: 7th December 2005, 10:20 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules