sending discord notification if changes in bash output (will be put in a cron)
1
vote
1
answer
206
views
I need to recieve a discord notification if this command does not have the string "No differences discovered" in the last 2 lines of the output. Ive been at it for hours I dont get it! and NO i do not know what amass says if there is a difference.
#!/bin/sh
amass track -d beesy.me | grep "No differences discovered"
if [[$? -eq 1]];
discord_notify "Changes in beesy.me domain!"
Asked by Simm Simmons
(11 rep)
Sep 14, 2022, 03:59 AM
Last activity: Sep 14, 2022, 05:03 AM
Last activity: Sep 14, 2022, 05:03 AM