Listing 5. Once processing for a job table entry is complete, update the table with the time processing ended for basic runtime statistics. function close_job_table_entry(iTaskID, iEntryID) sMYSQL = 'mysql -h myhost -u myuser -p myDB'; % close out day by adding processing end time to db table sSQL = sprintf(['echo "update JobManagement set node_end=now() ' ... 'where task_id = %d and entry_id = %d;"'], ... iTaskID, iEntryID); [status, cmdout] = system([sSQL ' | ' sMYSQL]);