Skip to content

Instantly share code, notes, and snippets.

@apathyboy
Created June 16, 2010 02:29
Show Gist options
  • Save apathyboy/440060 to your computer and use it in GitHub Desktop.
Save apathyboy/440060 to your computer and use it in GitHub Desktop.
if(@constant("_NO_CLI_")) {
if(@constant("_CAL_JOB_DEBUG_")) echo("going to ". @constant("_CAL_BASE_URL_") . $j ."\n");
// _ex_http_get(@constant("_CAL_BASE_URL_") . $j);
print "alec4";
} else {
# THIS IS WHERE I EXPECT THE PROBLEM TO BE WITH LOOPING JOBS, LETS TEST THIS
if(@constant("_CAL_JOB_DEBUG_")) {
echo("running ". mk_cmd_str("\"$php\" \"". @constant("_CAL_BASE_PATH_") . $j ."\"") ."\n");
echo(exec(mk_cmd_str("\"$php\" \"". @constant("_CAL_BASE_PATH_") . $j ."\"")));
}
// print "alec5";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment