run shell command on different thread and set the result on ui thread.