Karaf password as command line argument

Does anyone know if we can pass the password (habopen) as an argument to the karaf client? I had some scripts which relied on executing commands via the karaf client (to get binding IDs, restart bindings etc), but these now are getting stuck waiting for the password.


on linux apt-get install sshpass

and then:
sshpass -P ‘password’ ssh pi@ -p 8101 ‘feature:list’


Shouldn’t that be user openhab?

Great, thanks!

EDIT: I’ve just tried sshpass but it doesn’t seem to be working correctly (keeps coming back with ‘Password Authentication’). Am I missing something obvious?

EDIT to EDIT: Ignore that - works fine!! Thanks again