+ 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
    1,042
    Thank Post
    226
    Thanked 63 Times in 56 Posts
    Rep Power
    30

    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. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Is it a service or an application?

  3. #3

    Join Date
    Mar 2007
    Location
    Devon
    Posts
    1,042
    Thank Post
    226
    Thanked 63 Times in 56 Posts
    Rep Power
    30
    It's an application.

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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.

  5. #5

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,624
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    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

  6. #6

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

  7. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,763
    Thank Post
    3,273
    Thanked 1,053 Times in 974 Posts
    Rep Power
    365

    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 )

  8. #8

    Join Date
    Mar 2007
    Location
    Devon
    Posts
    1,042
    Thank Post
    226
    Thanked 63 Times in 56 Posts
    Rep Power
    30
    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.

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