Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #############################
- ## Use at your own risk!! ##
- ## Maniak dont always eat ##
- #############################
- SERVICE_HOME="home/maniak/"
- LOG_FILE=$SERVICE_HOME/lunch.out
- ERROR_STRING=dont_wanna_eat_with_you
- tail -Fn0 $LOG_FILE | \
- while read line ; do
- echo "$line" | grep "$ERROR_STRING"
- if [ $? = 0 ]
- then
- touch headphones.on && cmus +c
- echo $(date && echo "I want to eat ") >> /home/NeverW8/lunch/he_wants_to_eat.log
- fi
- done
- ############################
- #This is a joke.. come on! #
- ############################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement