I am trying to write a script in which i can pass arguments from search bar.
My basic script
print There are $# arguments to $0: $*
echo first argument: $1
echo second argument: $2
echo third argument: $3
echo here they are again: $@
I have also made the required entries in commands.conf and my script is running from UI
|mytest 1 2 3
But its giving "External search command 'mytest' returned error code 1."
In search.log I could find the error "SyntaxError: invalid syntax"
But my script is running fine from backend, so the syntax is fine.
I am not sure now, what the issue is.