I am writing a script in python which can connect to karaf console like sudo ./client and after logging I want to see what and all bundles are active by using commands like list| grep -i active.I want 1 single script for that.
So these two commands I want to use in my script.