This article talks about passing variables from the probe in the command arguments
Is there a way to pass variables from the probe in the command arguments?
We are trying to pass the PID in the command arguments in the "Execute a Script", but it is not accepting $pid, etc. It is just passing "$pid" not the PID of the process.
Any process probe version
Currently the action stab does not provide access to variables to be used on any of the lines in that section.
these are all going to static entries.
you might want to think about either:
How to use the nexec probe to execute a command?
https://knowledge.broadcom.com/external/article?articleId=35012