Title: How to extract a specific "getmininginfo" value to use in a function ? Post by: unick on August 14, 2013, 07:43:10 PM Hi,
I am trying to figure out a way to extract the values in the output of getmininginfo in a shell script. let's say I want to get block and difficulty values. If it were in PHP I would use something like array[key]. But I am not sure how to do this with the output of getmininginfo. Any one has a clue or could point me in the right direction? Thanks in advance! Title: Re: How to extract a specific "getmininginfo" value to use in a function ? Post by: Remember remember the 5th of November on August 14, 2013, 07:47:07 PM The output is "encoded"(more like formatted) with JSON, look it up. PHP has JSON support via json_encode/json_decode.
Title: Re: How to extract a specific "getmininginfo" value to use in a function ? Post by: unick on August 14, 2013, 07:50:50 PM thanks for the quick reply, I'll look it up :)
|