RossNet

FunnelWeb

Tutorial

Developer

Reference
1 Introduction
2 Interface
3 Scanner
4 Parser
5 Analyser
6 Tangle
7 Weave
8 Shell
9 Commands
10 Glossary
11 References

SEARCH
FunnelWeb Reference Manual

9.10 Execute

The execute command causes a specified text file to be executed as a FunnelWeb shellscript. The first argument is the name of the script file. The remaining arguments are assigned to the substitution variables $1, $2, ..., $9. Substitution variables in the range $1 to $9 that do not correspond to an argument are set to the empty string "". $0 is set to the empty string regardless. The execute command can be used recursively, allowing shell scripts to invoke each other. A file extension default of ".fws" (FunnelWeb Script) applies to script files.

Syntax  :
   execute = "execute" s filename {argument_string}
Examples:
   execute megatest.fws /usr/users/ross/fwtest !
   execute sloth

The first example above will result in the following substitution variable assignments.

$0 = ""
$1 = "/usr/users/ross/fwtest"
$2 = "!"
$3 = ""
...
$9 = ""

It should be stressed that there are no local variables in the FunnelWeb command language; the variables above are globally modified.

The execute command was added to allow the creation of sub-scripts to test FunnelWeb in particular ways.

Prev Up Next


Webmaster    Copyright © Ross N. Williams 1992,1999. All rights reserved.