+ Post New Thread
Results 1 to 9 of 9
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 ...
  1. #1

    Join Date
    Mar 2007
    Location
    Devon
    Posts
    964
    Thank Post
    205
    Thanked 55 Times in 49 Posts
    Rep Power
    25

    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?

  2. IDG Tech News
  3. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,856
    Thank Post
    412
    Thanked 776 Times in 649 Posts
    Rep Power
    170
    Is it a service or an application?

  4. #3

    Join Date
    Mar 2007
    Location
    Devon
    Posts
    964
    Thank Post
    205
    Thanked 55 Times in 49 Posts
    Rep Power
    25
    It's an application.

  5. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,856
    Thank Post
    412
    Thanked 776 Times in 649 Posts
    Rep Power
    170
    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.

  6. #5

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,114
    Thank Post
    1,075
    Thanked 671 Times in 580 Posts
    Rep Power
    214
    Quote Originally Posted by dave.81 View Post
    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

  7. #6

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,338
    Blog Entries
    2
    Thank Post
    604
    Thanked 901 Times in 631 Posts
    Rep Power
    296
    If you have any programming knowledge, an AutoIt script compiled into an executable will be ideal.

  8. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    7,795
    Thank Post
    1,607
    Thanked 751 Times in 702 Posts
    Rep Power
    256

    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 )

  9. #8

    Join Date
    Mar 2007
    Location
    Devon
    Posts
    964
    Thank Post
    205
    Thanked 55 Times in 49 Posts
    Rep Power
    25
    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.

  10. #9
    amfony's Avatar
    Join Date
    Jul 2007
    Location
    Sydney
    Posts
    161
    Thank Post
    29
    Thanked 13 Times in 13 Posts
    Rep Power
    15
    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:
+ Post New Thread

Similar Threads

  1. Running a program at startup in CC3?
    By reggiep in forum Network and Classroom Management
    Replies: 2
    Last Post: 17th July 2008, 01:02 PM
  2. [Video] Check it out YO
    By zike in forum Jokes/Interweb Things
    Replies: 3
    Last Post: 11th June 2008, 12:41 PM
  3. this seems to be occuring quite regularly now...
    By beeswax in forum General Chat
    Replies: 3
    Last Post: 11th July 2006, 10:20 PM
  4. 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
  •