The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-21-2007
mosammey mosammey is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 5
Question Time Validation in UNIX?

I am very new to scripting in UNIX and in need of help. I am creating a program that will check a file that has a target time in the form of HH:MM:SS before another program can begin executing. The file with the target time will only have that target time in it and nothing else.

Is there any way to validate that the time that is entered in the file is entered correctly when using: date +%T as the command to check the current time? I would like to validate the target time in the file in the program that I am creating. Please help