changed commandline to commandline.c_str() on line 37