Listing 3. Job control stack push function implemented in MATLAB. sDataPath is the absolute path to the data file to process. This gets pushed onto the job control table to make it available for processing. function push_job_table(iTaskID, sJobName, sDataPath) sMYSQL = 'mysql -h myhost -u myuser -p myDB'; sSQL = sprintf(['echo "insert into JobManagement (task_id, year, ' ... 'doy, task_name) values (%d, \\"%s\\", \\"%s\\");"'], iTaskID, ... sDataPath, sJobName); [status, cmdout] = system([sSQL ' | ' sMYSQL]);