Skip to content

Tag: debian-jessie

unlinking a file in linux

I am new to Linux and trying to understand some things. In my docker image I see that the error.log is linked to stdout. ln -sfT /dev/stderr “/var/log/apache2/error.log” What is the command to unlink this so the error.log is written again? Answer unlink and then touch the file. Then test the proce…

Email based on value of report

I’m looking to grep a numeric value from a tripwire report, and if the value is greater than 0, send an email. The script so far looks like this: Not sure how to grab the value and set it as a variable or if there’s a way to include it in the if statement itself. Answer First count the entries: