octopus
Part of the Furniture
Hello all,
Wondering if anyone has any suggestions, I write and modify some scripts.
But since the script uses environment variables from openvpn, it becomes difficult to track / verify because it is not written to any log.
Wondering if anyone has any suggestions for writing either to loggfile or log?
After the last openvpn modified/updated , it has stopped writing (script) (-x) "myscripts.sh" to "log /tmp/vpnclient-1.log" which it did before update.
Only seeing logger -(s)t write to logg.
Thanks!
Edit: This seems get the job done:
Other suggestions?
Wondering if anyone has any suggestions, I write and modify some scripts.
But since the script uses environment variables from openvpn, it becomes difficult to track / verify because it is not written to any log.
Wondering if anyone has any suggestions for writing either to loggfile or log?
After the last openvpn modified/updated , it has stopped writing (script) (-x) "myscripts.sh" to "log /tmp/vpnclient-1.log" which it did before update.
Only seeing logger -(s)t write to logg.
Thanks!
Edit: This seems get the job done:
exec 1> /tmp/command.log 2>&1
set -x
Other suggestions?
Last edited: