home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / lan / defutl.zip / DEFUTL.TXT < prev    next >
Text File  |  1993-07-02  |  5KB  |  140 lines

  1. DEFERRED UTILITIES
  2.  
  3.    LANtastic v 5.0 offers a new deferred login feature.  This allows you to
  4.    log into a server that may not be active (and even log into a server that
  5.    does not exist :-).
  6.    
  7.    While this is a very useful feature not all of the net utilities handle
  8.    a deferred login gracefully if the server is not active when they are run.
  9.    Both net clock and net postbox will generate a critical error if a server
  10.    loggged into with the deferred switch is not yet active.
  11.    
  12.    There is no way to test to see if a server that has been logged into with 
  13.    the deferred switch is now active without generating a critical error . . .
  14.    until now. 
  15.  
  16.    
  17. SRVRTST.EXE   
  18.  
  19.    Srvrtst will test a server whose name is entered on the command line,
  20.    if the workstation is logged into the server and the server is active
  21.    srvrtst will return an error level of 0.
  22.  
  23.    If the workstation is logged into the server BUT the server is currently
  24.    unavailable, srvrtst will return an error of 1.
  25.  
  26.    If the workstation is NOT logged into the server srvrtst will return an
  27.    error level of 2.
  28.  
  29.    Assume that you have a workstation and two servers, sam and george.
  30.    Sam is active and george has not been turned on yet. You issue the 
  31.    commands:
  32.  
  33.    Net login/deferred \\sam
  34.    net login/deferred \\george
  35.  
  36.    
  37.    SRVRTST \\SAM will return an error level of 0
  38.    SRVRTST \\GEORGE will return an error level of 1
  39.    SRVRTST \\BILLY will return an error level of 2
  40.  
  41. The following batch file shows how this command can be used
  42.  
  43. test.bat
  44. @echo off
  45. srvrtst %1
  46.  
  47. if errorlevel==2 goto notserver
  48. if errorlevel==1 goto unserver
  49.  
  50. echo Server %1 available for use
  51. goto end
  52. :unserver
  53. echo Server %1 unavailable for use
  54. goto end
  55. :notserver
  56. echo Not logged into server %1
  57. :end
  58.  
  59. POSTBOX.EXE
  60.     Postbox works the same as the net postbox command with two exceptions;
  61.     1) It will NOT return a critical error if it encounters an inactive
  62.        deferred login.
  63.     2) It returns the total number of waiting messages in the error level
  64.        so this command can be used in batch files to allow you to load the
  65.        mail command if there is waiting mail.
  66.  
  67. CLOCK.EXE
  68.     Clock works the same as the net clock command, it will set the local
  69.     time based on the time on a specified server.  If the server is not 
  70.     active clock will return error levels based on the state of the server
  71.     the error levels are the same as those generated by the srvrtst command.
  72.     The only difference between srvrtst and clock is that clock changes the
  73.     system time if successful.
  74.  
  75.     IE:
  76.         NO error returns 0  and system time is set
  77.         Logged in but inactive returns 1
  78.         Not Logged into server returns 2
  79.  
  80.  
  81. Legalities
  82.    SRVRTST.EXE, POSTBOX.EXE, and CLOCK.EXE are not freeware, nor are then in 
  83.    the public domain.  They are shareware programs, and the entire program 
  84.    and documentation are Copyright (C) 1993 Rick R. Roth, Tucson, Az.  
  85.    You are encouraged to copy the package freely, including distribution 
  86.    by BBS, shareware library, or other means, provided that (1) the 
  87.    distribution shall consist of the original archive containing the 
  88.    program and this documentation file, and (2) no fee of more than five 
  89.    US dollars ($5) shall be charged for the copy.
  90.  
  91. Registration
  92.    
  93.    To register your copies send a postcard to:
  94.    
  95.    Rick R. Roth
  96.    P.O. Box 5011
  97.    Tucson, Az 85703
  98.    
  99.    THIS COPY IS LICENSED FOR THE EXCLUSIVE USE OF THE LICENSEE.  
  100.    This license is good for one network, and the software can be installed
  101.    on all computers on this network.
  102.  
  103. Liability
  104.  
  105.  ╔═══════════════════════════════════════════════════════════════╗
  106.  ║                                                               ║
  107.  ║                    LIMIT OF LIABILITY                         ║
  108.  ║                    ──────────────────                         ║
  109.  ║      The author disclaims all warranties, expressed or        ║
  110.  ║ implied and assumes no liability for damages either from its  ║
  111.  ║ direct use or as a consequence of its use.  Have you hugged   ║
  112.  ║ your backup today?                                            ║
  113.  ║                                                               ║
  114.  ╚═══════════════════════════════════════════════════════════════╝
  115.  
  116.  
  117.  I have tested it on several computers and found that found that it works 
  118.  well on all of them.  All computers have been running LANtastic(tm) NOS v5.0
  119.  and above and all running MS DOS 3.3 and above.
  120.  
  121.  Please note that while the author is an employee of Artisoft, Inc., Artisoft 
  122.  is not responsible for the contents of this file; the functioning of ANET.EXE 
  123.  (or any damages resulting from the use or misuse of the program); and further, 
  124.  Artisoft Technical Support and other employees of Artisoft, Inc. are 
  125.          
  126.                 NOT RESPONSIBLE FOR SUPPORTING THIS PROGRAM!  
  127.          
  128.   If you have problems or suggestions when using this program, direct them to 
  129.   me Rick R. Roth through one of the following channels:
  130.  
  131.         US Mail:          P.O. Box 5011,  Tucson, AZ  85703
  132.         CompuServ:        Artisoft forum, 75300,1377
  133.         Arti-facts BBS:   If you have a current account there.
  134.  
  135.  
  136.   Do NOT call the author during business hours for support, this program was
  137.   not written during business hours, it will not be supported during business 
  138.   hours.
  139.  
  140.