home *** CD-ROM | disk | FTP | other *** search
- I have added an AREXX port into C-BBS. I used it to implement the 'A'
- commands in the SYSOP process but I have now added the ability for a process
- or an AREXX program to send any command to the SYSOP process. NOTE that
- only the SYSOP process will receive commands. All other 'mb' processes will
- only accept variations of the 'A' command from SYSOP.
-
- You make the SYSOP start to listen to the AREXX port by sending it the
- command "GO" while it is in the IDLE state. It will then send the prompt to
- the screen and you can now use AREXX to send any C-BBS command to the SYSOP
- process. Here is a very simple AREXX script that will log into SYSOP, do
- an LL command and then logout:
-
- /* AREXX scripts must start with a comment as the first line */
- address "CBBS-1" /* The SYSOP port address MUST be in quotes */
- "GO" /* Send GO command to SYSOP */
- "ll 5" /* Send the ll command */
- "b" /* Send the Bye command */
- exit
-
- Using this form of the GO command, the SYSOP output goes to the SYSOP
- window. You can also make SYSOP send all of its output to another AREXX
- port by specifying the name in the GO command. So if you want output to
- go to the AREXX port named AREXX-TEST, then you would start SYSOP by sending
- it the AREXX command:
- "GO AREXX-TEST"
-
- Note that ALL of its output, including the SYSOP> prompt, will be sent to
- the named port.
-
- There is one problem that I have not been able to solve with AREXX. It is
- obvious that you would want to be able to read the AREXX output from SYSOP
- by using an AREXX script. This involves the use of the GETARG() AREXX
- function which is in the rexxsupport.library. However, I have been unable to
- make the GETARG() function work with the rexxhost.library routines that I am
- currently using.
-
- There is a workaround solution for this problem. I have written a program
- called 'fx' which can be used to capture the output of ONE BBS command.
- See the file fx.doc
-