---
title: "How to pass Path Alias values to a shell script"
description: "Path Alias values can be passed to a shell script by storing them in userdata as environment variables. This process involves creating a rule, an action, and a shell script to utilize the Path Alias values effectively."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004021765-geneos-how-to-pass-path-alias-values-to-a-shell-script/index.html"
---
## Userdata

Store the path alias value to a [userdata](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#User_Data) and it becomes an environment variable in your Action script

## Additional Information

1. Create the rule

   - ![8349564507165 mceclip0](https://docscdn.itrsgroup.com/faq/images/geneos/115004021765-8349564507165-mceclip0.png)

2. Create the action

   - ![8349744965789 mceclip1](https://docscdn.itrsgroup.com/faq/images/geneos/115004021765-8349744965789-mceclip1.png)

3. Create the shell script

   - ![8349743819165 mceclip0](https://docscdn.itrsgroup.com/faq/images/geneos/115004021765-8349743819165-mceclip0.png)

## Output

## Dataview

![8349888914717 mceclip1](https://docscdn.itrsgroup.com/faq/images/geneos/115004021765-8349888914717-mceclip1.png)

## Shell Script Log File

![8349881438365 mceclip0](https://docscdn.itrsgroup.com/faq/images/geneos/115004021765-8349881438365-mceclip0.png)

## Related downloads

- [rule_Path_Alias_as_Shell_Variable.xml](/faq/downloads/geneos/115004021765-8349210030365-rule_Path_Alias_as_Shell_Variable.xml)


