Last active
December 30, 2021 13:16
-
-
Save nnsee/09de04d49dd66cb4577eaa0e3bf54110 to your computer and use it in GitHub Desktop.
Print caller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
_DATA="[$(date -uR)] | |
PID $$: $(tr '\0' ' ' < /proc/$$/cmdline) | |
PPID $PPID: $(tr '\0' ' ' < /proc/$PPID/cmdline) | |
UGID: $(id) | |
[-------------------------------] | |
" | |
echo "$_DATA" >> /tmp/trig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment