Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr4155 :: GNU sleep tips

Deltaray gives an overview of the sleep command and some uses for it.

<< First, < Previous, , Latest >>

Hosted by Deltaray on 2024-07-05 is flagged as Clean and is released under a CC-BY-SA license.
cli,command line,linux. (Be the first).

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:09:58

general.

Sleep for 2 hours and 45 minutes:

sleep 2h 45m

Poor man's Pomodoro timer:

sleep 25m ; play bell.wav

Better one with tic toc:

(play tic.wav repeat 5000 trim 0 25:00 && play bell.wav)

Send a desktop notification from the command line:

notify-send "the message you want to show"

Pizza notifier:

sleep 15m ; notify-send "Pick up the pizza"

10 minute temperature probe display:

while temperature-probe ; do sleep 10m ; done

Download from websites in urls.txt with a 30-60 second delay:

for url in $( cat urls.txt ) ; do wget "$url" ; sleep $(( RANDOM % 31 + 30 )) ; done

Poor man's annoy-a-tron:

while true; do play -qn synth sin 9k trim 0 0.75 vol .5 ; sleep $((RANDOM % 4 + 3))m ; done

Other examples of using sleep from climagic:
https://twitter.com/search?q=from%3Aclimagic%20sleep&src=typed_query&f=live


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?