3 ms·
rephrasing the example: Awk script stored in file. In awk file, awk script makes use of mysql interface to generate information to use in awk script to proces
by sargstuff 4y ago
rephrasing the example:
Awk script stored in file.
In awk file, awk script makes use of mysql interface to generate information to use in awk script to process & return to mysql.
Awk file redirects error messages generated by the awk script to an error log file.
In mysql, aforementioned awk script is called in a different terminal than mysql from within mysql via system().
When/how does the message in the error log file get displayed to the mysql console?
Where does the error(s) generated by the mysql stuff used in the awk script get displayed? Note: example does not state what's done with error message generated by mysql called within the awk script.
Hint: Not to the invoking mysql console screen & maybe also not to the error log file.
edit: The assumption is that awk successfully runs the awk file & within the awk file the mysql api call runs successfully.
Is the mysql api call(s) always worked a good/valid assumption to make without knowing what the 'awk file' handles/does with the mysql api error(s)?
Is mysql & awk script being run on the same system?
Is system set up to log errors to the root console or is that disabled?
Did the printer on the serial console that is suppose to print out/log hard copy of the root console error messages run out of paper at the wrong time?