home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / programme / trionbbs110 / Trion / docs / Utils / CheckStart.doc < prev    next >
Encoding:
Text File  |  1998-10-06  |  1.5 KB  |  57 lines

  1.  
  2.  
  3.  
  4.    =====( CheckStart V1.00 )=========================================
  5.  
  6.  
  7.         Trion 'CheckStart' Utility.
  8.  
  9.         (c) Copyright Paul Spijkerman, '94-'97. All rights reserved.
  10.  
  11.         Written for use with the Trion BBS package.
  12.  
  13.  
  14.    ===================================================================
  15.  
  16.  
  17.    In some occaisions you don't want the BBS to start up when
  18.    your computer boots.
  19.    Maybe because of a technicall problem or you just want to
  20.    use the computer for something else.
  21.  
  22.    In that case you only have a split second to stop the
  23.    BBS script.
  24.  
  25.    So the CheckStart programm was born which displays a little
  26.    window with a quit button at the (exact) center of
  27.    your workbench window.
  28.  
  29.    Default the window will be shown for 3 seconds and then
  30.    disappear and return a value 0 so the script will continue.
  31.    If you click on it it will return immediatly with a
  32.    return value of 5 (warn).
  33.  
  34.    If the 3 seconds are to short (or to long ?) you can enter
  35.    a number of seconds of your choice on the commandline.
  36.  
  37.    If the quit button is clicked the programm exits with
  38.    return value 5 which isn't enough to terminate the
  39.    script (if you didn't change the default fail value
  40.    with failat) so you have to use the if command
  41.    to check 'IF' the script has to stop.
  42.    To stop the script you use the 'QUIT' command.
  43.  
  44.  
  45.    You can use it in the BBS startup script by adding something
  46.    like this:
  47.  
  48.  
  49. CheckStart
  50. if WARN
  51.    echo "Trion startup aborted.."
  52.    quit            ;Stop script if CheckStart returns return code 5
  53. endif
  54.  
  55.  
  56.  
  57.