script to check cgminer through api