Results 1 to 4 of 4

Thread: Computer fully booted batch file

  1. #1
    Join Date
    Apr 2012
    Beans
    27

    Computer fully booted batch file

    I have my server set to start from my Windows 7 computer when I use by a batch file that uses WOL. In my batch file, I would like it to do some kind of while statement that will wait until the server is absolutely booted up completely. Then the batch file will tell me that the server is started up. I would like this so I know that my server has started up, even when I'm not around to actually see that it has.

    Can someone help me write the code for that? It is for a batch file.

    So to make it easier to understand:

    -First runs the wol to turn it on (already taken care of)
    -Then has something that will continuesly check if the server is fully booted up into Ubuntu 10.04
    -When it confirms it's fully booted up, it will then let me know from my Windows computer batch file

  2. #2
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Computer fully booted batch file

    Code:
    :REPEAT
    ping server
    if not %errorlevel% == 0 GOTO REPEAT
    
    echo server appears up

  3. #3
    Join Date
    Apr 2012
    Beans
    27

    Re: Computer fully booted batch file

    Quote Originally Posted by koenn View Post
    Code:
    :REPEAT
    ping server
    if not %errorlevel% == 0 GOTO REPEAT
    
    echo server appears up
    Thanks! Works great! Is there a way to not display the pinging process?

  4. #4
    Join Date
    Apr 2012
    Beans
    27

    Re: Computer fully booted batch file

    Nevermind got it

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •