My shell command ifconfig | grep \"${IpAddress}\" | wc -l returns either 0 or 1 when run inside terminal. I need to do the same using JMeter and assert accordingly (0 is fail, 1 is pass). But when I'm doing this:
Runtime.getRuntime().exec("ifconfig | grep \"${IpAddress}\" | wc -l");
I get nothing in return! Any ideas on how I can save (and later retrieve) the value of this command's output?
 
     
    