---
title: "How to use the dollar sign ($) for variables in check_command_args"
description: "Using the dollar sign ($) in check_command_args requires special handling to avoid variable interpretation. Encapsulate the argument in double quotes and escape the dollar sign with another dollar sign to pass it correctly."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020257473-op5-monitor-how-to-use-the-dollar-sign-for-variables-in-check-command-args/index.html"
---
## Question

---

I want to use "$" as input to a check\_command in check\_command\_args. How can I do this?

## Answer

---

You can do this by encapsulating the argument containing "$" in double quotes:  "", and escape the sign $ with another one so that the input is not interpreted as a variable.

See the example below with the plugin "[check\_oracle](https://docs.itrsgroup.com/docs/op5-monitor/current/topics/plugins/plugin-reference.html#check_oracle)": 

| Function | Value |
| --- | --- |
| check\_command | USER1$/check\_oracle -l "$ARG1$" -u "$ARG2$" -p "$ARG3$" -o QUERY -a "$ARG4$" -w $ARG5$ -c $ARG6$ |
| check\_command\_args | oracle-01!user!password!select 1 from v\$$database where 'value123' = 'value123'!2!3 |

**Output**

```
_USER1_/check_oracle -l "oracle-01" -u "user" -p "password" -o QUERY -a "select 1 from v\$database where 'value123' = 'value123'" -w 2 -c 3Result code: OKOK - Query returned:  1|result=1;2;3
```


