Using tailf:exec we are calling a python script abc.py…
if 0:
print "Command successful"
exit(0)
else:
print "Command failed"
exit(1)
So, we want to print these messages on the ConfD cli.
But whenever print statement is encountered… the script returns an error code to ConfD … and in turn ConfD is printing Error: Application Protocol error.
So how to get rid of this and print the necessary messages in ConfD cli.