How to get command path in /clispec/$MODE/cmd/callback/exec

Hi,

I want to get command path when I use “osCommand” as exec callback in clispec.
Can ConfD provide the command path for osCommand?

BR,
Harry Huang

Hi,

See clispec(5) man page /clispec/ ... /callback/exec/args (argsType)

Hi Cohult,

I have tried to print
$(path)
$(cpath)
$(ipath)
$(tty)
in my shell script, but only tty is available.

Would you please specify which argsType is the command path?

BR,
Harry Huang

Hi,

The path cpath ipath arguments will not be provided if you are executing a shell script from the top level in the CLI. Try moving to a sub-mode (C-style) / sub-element (J-style) and executing your shell script. The path to where you are in the CLI will then be passed as arguments.