Results 1 to 5 of 5
  1. #1
    Newbie
    Overall activity: 0%

    Join Date
    Feb 2010
    Posts
    3
    Liked
    0 times
    Points
    1,669

    Post Can i restart application automatically when the system restart

    I have configure nearly 100 MRTG senses on windows 2003 server machine.

    I used perl.

    so if my machine restart i have to restart command line window one by one and run the MRTG again (c:\mrtg\bin>perl mrtg mrtg.cfg)

    can i restart these application automatically at the system restart ?

    Best regards

    nuwan

  2. #2
    Pc Wizkid & Programmer :)
    Overall activity: 3.0%

    Join Date
    Jun 2008
    Location
    Rotherham, United Kingdom
    Posts
    1,195
    Liked
    48 times
    Points
    12,033
    use a batch file to execute your cmd scripts and add the batch file to the startup in the registry
    Out of my mind. I Haven't Lost My Mind, It's Backed Up On Disk Somewhere.

  3. #3
    Newbie
    Overall activity: 0%

    Join Date
    Feb 2010
    Posts
    3
    Liked
    0 times
    Points
    1,669

    Thumbs up

    thanks lot

    i will try it

    nuwan

  4. #4
    Administrator
    Overall activity: 46.0%

    Join Date
    Nov 2006
    Location
    Malaysia
    Posts
    9,802
    Liked
    1656 times
    Points
    48,740
    Check this article out.
    http://www.raymond.cc/blog/archives/2009/10/23/execute-any-file-when-application-crashed-or-stopped-running-useful-for-srcds/

    Sometimes you'll need to set up some delay between the commands using ping 127.0.0.1 -n X.

  5. #5
    Newbie
    Overall activity: 0%

    Join Date
    Feb 2010
    Posts
    3
    Liked
    0 times
    Points
    1,669
    thanks for both of you

    success my work

    i create the batch file as follows

    cd\

    cd mrtg\bin

    perl mrtg mrtg.cfg

    then add shortcut to startup folder.

 

 

Similar Threads

  1. What is your PC restart time?
    By LizardMan in forum General Forum
    Replies: 3
    Last Post: 03-05-2010, 01:25 PM
  2. Vista cannot restart using restart button
    By Kazemagic in forum General Forum
    Replies: 11
    Last Post: 04-16-2009, 12:29 PM
  3. System Restart for every 30 mins
    By tejumaU in forum Hardware
    Replies: 9
    Last Post: 03-16-2009, 09:55 AM
  4. system restart for every 30 mins
    By tejumaU in forum Software
    Replies: 1
    Last Post: 03-15-2009, 08:50 PM
  5. Replies: 10
    Last Post: 12-06-2008, 06:48 AM

Tags for this Thread

All times are GMT +8. The time now is 12:06 AM.