10.4 Invoking a Script with Arguments

Invoking a script many times requires supplying arguments to parameterize the script.

To send arguments to the script (the arguments appear as the args array variable), use the ‑A parameter, followed by arguments to be supplied to the script:

# fscript -m util/forceoff -A admin

Enter web server host [reason] :
Enter web server port [80]      :
Enter your Formula(r) account userid   : admin
Enter your Formula(r) account password : formula
Found target element: Default Administrator (admin)

Result of forceoff operation:

Warning. You are not able to logout your own session.

There were no sessions active with the given account admin