Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search
 

Phillip McCleod

(1,837 posts)
7. pretty damn good!
Wed Mar 6, 2013, 04:25 PM
Mar 2013

the KLINGON function has a line that reads:

printf "\a"

try it in your *SH (tested in BASH)

if nothing interesting happens, make sure your terminal program allows system beeps ('bell on').

it's an utterly simplistic shell-based alarm clock program that will let you set the alarm in relative or absolute clock time. i wrote it one night at a motel when i had a plane to catch and too much 'fun' beforehand. i cleaned it a bit, later, but not much.

once the alarm starts going off, it waits for any keypress to stop it. otherwise your computer will beep into eternity..

javascript? (nt) NYC_SKP Mar 2013 #1
uh-oh. GONG! Phillip McCleod Mar 2013 #2
you deserve a hint though. 'script' was correct. BING-BING-BING! Phillip McCleod Mar 2013 #3
KSH (nt) ChromeFoundry Mar 2013 #4
DING-DING-DING! Phillip McCleod Mar 2013 #5
Looks like it does something like... ChromeFoundry Mar 2013 #6
pretty damn good! Phillip McCleod Mar 2013 #7
Interesting... ChromeFoundry Mar 2013 #8
funny how that works huh? Phillip McCleod Mar 2013 #9
This message was self-deleted by its author Dash87 May 2013 #10
Latest Discussions»Retired Forums»Website, DB, & Software Developers»/* this forum needs more ...»Reply #7