Help for this page
$chan1->exec("./a.out");
$chan1->exec("./a.out &"); or $chan1->exec("nohup ./a.out"); (as zentara suggested)