7
votes
While loop not outputting to a log file
You have >> "$log", but it does not receive any input as it comes after a ;.
Either put it after done:
while ... do ... done >> "$log"
or after the curl command:
curl ....
3
votes
How to fix CVE-2018-364 vulnerability
Guest mitigation mechanisms lists everything you can do. The easiest solution: boot with l1tf=full kvm-intel.vmentry_l1d_flush=always. This will destroy performance (specially multithreaded since this ...
2
votes
Best way to run child process in C++ if you want to get output of the called command
In many places in my code I use system() function to run some commands.
Not a good sign! system is really something that you should be vary of using – it's not a C++ function, it's not a system call, ...
1
vote
What format does syslog() use when writing to /dev/log?
Maybe man rsyslogd gives an important hint:
/dev/log
The Unix domain socket to from where local syslog messages are
read.
Note "local syslog messages".
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
logs × 1796linux × 315
syslog × 109
debian × 105
bash × 103
rsyslog × 103
shell-script × 90
systemd × 87
centos × 84
logrotate × 77
ubuntu × 72
text-processing × 72
awk × 70
grep × 68
security × 64
cron × 62
ssh × 61
tail × 56
apache-httpd × 55
systemd-journald × 54
rhel × 51
files × 48
kernel × 48
monitoring × 41
sed × 40