Exclusion patterns

Exclusion patterns

Let's create a script that adds a new test folder and creates a file every 1 second. Also this script register the message in a log file.

rm -rf test/
mkdir test/
for i in $(seq 1 50000);
   echo "Welcome $i times" >> logs
   touch test/$i.cache
   sleep 1

Add execution permissions to the script chmod +x ./poc.sh

Execute the script ./poc.sh

If we see, the numbers of files in the test directory are increasing every 1 second, but, in the editor, we don't see those files. watch ls -la ./test

This is accomplished using the property exclusionPatterns in the definition of the scenario index.json.

  "environment": {
      "exclusionPatterns": ["*test", "./test/*", "./logs"]

Also, we can exclude the hidden files, setting the property hideHiddenFiles in true

  "environment": {
      "hideHiddenFiles": true,
This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]