$cmd = 'someshellexe ' . $basepath . '/' . $file; $rc = qx($cmd);