1

I have some scripts that work perfectly when I invoke them directly but not when invoked via a keyboard macro.

I've tired looking at bash logs and history but I don't think those locations only show information about scripts I directly invoked.

How can I find logs and history about my scripts that I'm not invoking directly?

  • 1
    There are no logs, unless the scripts do that manually, or something about how the scripts are run collects any output, or if you point strace or sysdig at them. – thrig Oct 28 '16 at 16:30
  • 2
    if you don't want to edit the script to add logging, then edit they key macro; /home/user/bin/script.sh &>/home/user/temp.log and check the log, then edit the key map back. – mikejonesey Oct 28 '16 at 18:33
  • @mikejonsey thx I'm trying and the log is created but it's always black even for a script that returns an error normally. – Philip Kirkbride Oct 28 '16 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.