Support #19
Executing klish commands in ACTION
0%
Description
Hello.
Is it possible to execute klish commands inside an ACTION tag?
I'm looking for something like the builtin clish_source (which accepts a filename), but instead of a filename I would need to invoke klish commands with parameters.
What I'm trying to do is implement (or at least emulate) something like bash "exec" function inside klish: it is needed because when I have ssh with proxycommand and clish is the user's shell, ssh invokes klish with 'exec ssh'. I already implemented ssh command inside klish, what I'm still missing is the "exec" part.
Is there any builtin for of doing "exec" of commands runnable on the klish shell?
If not, to emulate it I think one could create a that would be something like:
<COMMAND name="exec"
help="Exec call for ssh compatibility purposes"
lock="false"
interrupt="true"
escape_chars=""
args="args"
args_help="klish command">
<ACTION builtin="clish_command">${args}</ACTION>
</COMMAND>
Of course this doesn't work as is, but is there something like this?
Thanks in advance and best regardes.