Skip to content
Advertisement

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 procedure by writing to the log: If apache for

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:

No network interfaces on Debian 8 Lenovo install [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Advertisement