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

ChromeFoundry

(3,270 posts)
6. Looks like it does something like...
Tue Mar 5, 2013, 03:32 PM
Mar 2013

Accepts up to two numeric inputs: Hours and Minutes..
It then calculates the the total number of seconds specified by the input parameters.
Does a little date/time validation.
Sleeps for the calculated number of seconds.
Reads a single character from standard-input.
Then kills itself.

/*

Maybe I'm way off.. it's been a lot of years since I've done anything notable with UNIX.
I think I could probably rewrite that in PowerShell in less than 70 characters

*/

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 #6