### Using Scripts

Scripts enable you to perform several Guardian tasks by issuing a single command in the Guardian Command Line Interface. You can schedule scripts to run at specified times and intervals by using utilities such as the Windows Task Scheduler or the Linux `crontab` command.

Here is an example of a script (activate.txt) that activates several domains:

`activateDomain -t http://slp7:7001 -u un -p pw -c true
activateDomain -t http://slp8:7001 -u un -p pw -c true
activateDomain -t http://sqa-lldev:4044 -u un -p pw -c true
activateDomain -t http://slg-lldev:7001 -u un -p pw -c true
activateDomain -t http://slg-lldev:4401 -u un -p pw -c true
activateDomain -t http://mj23:32292 -u un -p pw -c true`

To run this script, enter the command:

    guardianHeadless -gscript -f activate.txt

Here is an example of a script (evaluate.txt) that evaluates several domains:

`evaluateDomainBundle -d guardian-dev_slp7_7001 -b 1
evaluateDomainBundle -d guardian-dev_slp7_7001 -b 2
evaluateDomainBundle -d guardian-dev2_slp8_7001 -b 0
evaluateDomainBundle -d guardian-qa_sqa-lldev_4044
evaluateDomainBundle -d guardian-domain_slg-lldev_7001 -b 1
evaluateDomainBundle -d guardian-domain_slg-lldev_7001 -b 2
evaluateDomainBundle -d guardian-domain_slg-lldev_4401
evaluateDomainBundle -d mydomain_mj23_32292`

To run this script, enter the command:

    guardianHeadless -gscript -f evaluate.txt

To review the results of script evaluations, use the Guardian Graphical User Interface. The Domain Explorer Evaluation History folder contains an Evaluation Summary for each evaluation performed.