Jump to content

Recommended Posts

Posted

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?

Posted
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

Posted

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 )

Posted

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.

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...