Hello, I am relatively new to Linux and especially to BASH scripting... need some assistance doing the following:
I need a script that utilizes journalctl to evaluate the kernel’s error and warning logs twice on a Debian system, at 30 sec intervals, uses diff to compare the two files, and outputs the results to a file located in /usr/share/cctc/. Also need to display the last 10 logs associated with the cronservice and the last 15 logs associated with my UID, and output all the results in one file located in /usr/share/cctc/in addition to displaying the results to screen.
ANY assistance you can offer would be appreciated!
I need a script that utilizes journalctl to evaluate the kernel’s error and warning logs twice on a Debian system, at 30 sec intervals, uses diff to compare the two files, and outputs the results to a file located in /usr/share/cctc/. Also need to display the last 10 logs associated with the cronservice and the last 15 logs associated with my UID, and output all the results in one file located in /usr/share/cctc/in addition to displaying the results to screen.
ANY assistance you can offer would be appreciated!