...
Button handy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
In certain cases, it is necessary to run SIL Scripts from an outside source.
...
Create the script with hard-coded values and make sure it works the way you want it to.
Replace the hard-coded values with variables that accept arguments (the argv variable) when run from an outside source.
(optional) Test the script using the call() routinefunction. This is an important step to test the script without the complications of a network.
Make modifications to the example curl script to test running the script.
I will break down each step with an example script that uses the createIssue() routinefunction.
Create a Script with Hard-Coded Values
...
|
Test the Script Using the Call()
...
Function
In a separate script, run the script using the call() routinefunction. Notice how the number of elements in the array matches the arguments used by argv in the above script. The arguments used should match all elements accessed in the script being called.
...