compare time using date command
        Posted  
        
            by Andrei 
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Andrei 
        
        
        
        Published on 2010-05-24T18:02:53Z
        Indexed on 
            2010/05/24
            18:11 UTC
        
        
        Read the original article
        Hit count: 278
        
Say I want a certain block of bash script execute only if it is between 8 am (8:00) and 5 pm (17:00), and do nothing otherwise. The script is running continuously
So far I am using date command.
How to use it compare it current time within the range?
Thanks
© Stack Overflow or respective owner