( ** Go back to PARENTPAGE ../ASPL-Scripting-Language.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Tracing the script while simulating three players throwing dice on a craptable

In this example, we added the -SCT option on the command line to enable the tracing facility on the script throwdice.aspl to simulate three players throwing dice on a craptable. The script is called with the argument 900 for nine hundred throws per player (with a fair dice throw between the three players), and the option -SCT is added at the command line.

1 Cmd#1 on Machine mm01 User root
(ndxNo=1 Cmd# No=1 on Machine mm01 User root no_tm_u_h_cwd=3:32:22 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl u_h=root@mm01)
BASH 3:32:22 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl # throwdice.aspl 300 -SCT
Running the ASPL script throwdice.aspl to simulate three players throwing dice on a craptable with 300 throws. The -SCT option is added at the command line to trace the script while executing the operations

2 Cmd#2 on Machine mm01 User root
(ndxNo=2 Cmd# No=2 on Machine mm01 User root no_tm_u_h_cwd=3:32:49 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl u_h=root@mm01)
BASH 3:32:49 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl #