0

I have a script, 'setwakeup.sh'. I set the system up quite a while ago and it seems something is invoking the script when it shouldn't be, but I can't seem to find out what.

Is there something I can insert in setwakeup.sh which will log which process/user is running the script?

Thanks!

1 Answer 1

3

(date; ps $PPID) >> /your/call.log

Sign up to request clarification or add additional context in comments.

1 Comment

+1, but I would use a brace block instead of a subshell: { date; ps $PPID; } >> /your/call.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.