What's new

Script logg issues, suggestions

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

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:
exec 1> /tmp/command.log 2>&1
set -x

Other suggestions?
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top