home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 5 / QRZ Ham Radio Callsign Database - Volume 5.iso / files / amiga / cdoc720j.lzh / arexx.doc < prev    next >
Encoding:
Text File  |  1993-08-25  |  1.9 KB  |  40 lines

  1. I have added an AREXX port into C-BBS. I used it to implement the 'A'
  2. commands in the SYSOP process but I have now added the ability for a process
  3. or an AREXX program to send any command to the SYSOP process. NOTE that
  4. only the SYSOP process will receive commands. All other 'mb' processes will
  5. only accept variations of the 'A' command from SYSOP.
  6.  
  7. You make the SYSOP start to listen to the AREXX port by sending it the
  8. command "GO" while it is in the IDLE state. It will then send the prompt to
  9. the screen and you can now use AREXX to send any C-BBS command to the SYSOP
  10. process. Here is a very simple AREXX script that will log into SYSOP, do
  11. an LL command and then logout:
  12.  
  13. /* AREXX scripts must start with a comment as the first line */
  14. address "CBBS-1"     /* The SYSOP port address MUST be in quotes */
  15.    "GO"              /* Send GO command to SYSOP */
  16.    "ll 5"            /* Send the ll command */
  17.    "b"               /* Send the Bye command */
  18. exit
  19.  
  20. Using this form of the GO command, the SYSOP output goes to the SYSOP
  21. window. You can also make SYSOP send all of its output to another AREXX
  22. port by specifying the name in the GO command. So if you want output to
  23. go to the AREXX port named AREXX-TEST, then you would start SYSOP by sending
  24. it the AREXX command:
  25.    "GO AREXX-TEST"
  26.  
  27. Note that ALL of its output, including the SYSOP> prompt, will be sent to
  28. the named port.
  29.  
  30. There is one problem that I have not been able to solve with AREXX. It is
  31. obvious that you would want to be able to read the AREXX output from SYSOP
  32. by using an AREXX script. This involves the use of the GETARG() AREXX
  33. function which is in the rexxsupport.library. However, I have been unable to
  34. make the GETARG() function work with the rexxhost.library routines that I am
  35. currently using.
  36.  
  37. There is a workaround solution for this problem. I have written a program
  38. called 'fx' which can be used to capture the output of ONE BBS command.
  39. See the file fx.doc
  40.