* @param code
* @param flags
* @return
*/
public Command execute(Plot plot, String code, int flags, String tempDir) {
Command rtn = null;
if (compile(plot, code, sFTemp)) {
String sCmd = sCommand(sFTemp, (flags & JG_Pause) > 0, tempDir);
rtn = SysUtil.execCmd(sCmd, (flags & JG_Log) > 0, (flags & JG_InNewThread) > 0);
if ((flags & JG_DeleteTempFile) > 0) {
U.deleteFile(sFTemp);