home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 November / PCO_1198.ISO / filesbbs / os2 / os2www.arj / OS2WWW.ZIP / SYS406.R8 / BIN / RESTART.CMD < prev    next >
Encoding:
Text File  |  1996-01-30  |  926 b   |  31 lines

  1. /* Restart the PowerWeb Server */
  2.  
  3. parse arg quick admin_user admin_password
  4.  
  5. if quick = "?" | quick = "/?" then do
  6.     say "Utility to Restart the PowerWeb Server++"
  7.     say ""
  8.     say "Usage:     Restart [quick [AdminName [AdminPassword]]]"
  9.     say ""
  10.     say "Example 1: Restart"
  11.     say "Example 2: Restart quick admin secret"
  12.     say ""
  13.     say "If the quick flag is omitted, it defaults to 'quick'."
  14.     say "If the admin user name is omitted, it defaults to 'admin'."
  15.     say "If the admin user password is omitted, it defaults to empty."
  16.     return
  17. end
  18.  
  19. if length(admin_user) = 0 then
  20.     admin_user = 'admin'
  21.  
  22. if length(quick) = 0 | translate(quick) = 'QUICK' | translate(quick) = 'Q' then
  23.     http = '/!server?file=&method=0&timing=0&save=0&submit=Restart'
  24. else
  25.     http = '/!server?file=&method=1&timing=0&save=0&submit=Restart'
  26.  
  27. call CallHTTP http, admin_user, admin_password, "Configuration Management", "Copyright"
  28.  
  29. return
  30.  
  31.