home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13h.zip / ADV_OPTS.CMD < prev    next >
OS/2 REXX Batch file  |  1997-11-14  |  975b  |  27 lines

  1. /*Example of a rexx procedure called by the EXEC line in an SRE-http
  2. advanced-options file. It say echo stuff to the pmprintf window */
  3.  
  4. /* SRE-http passes the following arguments */
  5. parse arg args,source,request,sel,privset,verbose,servername,host_nickname,datadir,homedir,tempdir
  6.  
  7. say " The following arguments were recieved: "
  8. say "Args from the EXEC line in the advanced options file: " args
  9. say "Source: " source
  10. say "Request: " request
  11. say " (modified) selector: " sel
  12. say "SRE-http privileges: " privset
  13. say "Verbose: " verbose
  14. say "Servername: " servername
  15. say "Host Nickname: " host_nickname
  16. say "DataDirectory: " datadir
  17. say "HomeDirectory: " homedir
  18. say "TemporaryDirectory: " tempdir
  19.  
  20. return 0
  21.  
  22. /* note this should ALWAYS return 0.  The only exception is when it
  23. issues a goserve completion code (such as 'FILE xxx ' or 'VAR xxx')
  24. If a completion code is issued, it should return status_code bytes_sent,
  25. i.e.;  return 200||' '||1512
  26. */
  27.