Skip to content

Instantly share code, notes, and snippets.

@justinwoo
Created May 14, 2019 17:23
Show Gist options
  • Save justinwoo/b55a74264d3acf1029103ec925fff598 to your computer and use it in GitHub Desktop.
Save justinwoo/b55a74264d3acf1029103ec925fff598 to your computer and use it in GitHub Desktop.
maybe nobody else should do this
#!/usr/bin/env bash
while true
do
if pgrep trashsadf;
then
date
echo "we are still running"
else
date
echo "starting trash again"
# trash
fi
sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment