Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #10 Minutes = 600
- #30 Minutes = 1800
- #1 Hour = 3600
- #4 Hours = 14400
- #sleep <secsbeforeinfinitelylooping>
- condition=1
- while (( $condition == 1 ))
- do
- num1=$((1 + RANDOM % <maxsecsbeforegoingoff>))
- num2=$((1 + RANDOM % <maxtimesgoingoff>))
- sleep $num1
- while (( $num2 > 0 ))
- do
- wall '<yourmessagehere>'
- ((num2--))
- done
- done
- #Execute with &
- #then type jobs
- #then type bg
- #jobs again
- #then disown
- #close terminal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement