run cmd via socket