use exec lib to excute cmd and return the stdout to html