Hi,
Actually, the requirement is here:
currTime=$( date +'%R' ) # HH:MM
currHour=$( date +'%H' ) # HH
currMin=$( date +'%M' ) # MM
scheduled_time:
05:30
06:40
06:45
07:15
08:10
08:30
08:35
09:15
09:30
09:35
13:15
13:25
13:30
14:20
14:40
14:45
17:45
18:00
18:05
18:40
19:00
18:30
19:05
22:15
23:00
23:15
23:55
05:30
06:00
everyday i have to check:
if [[ "$currTime" == "$(scheduled_time +5 minutes)" ]]
then
do something
fi
how to add 5 minutes to the above scheduled_times?
Last edited by santosh0782; 03-20-2014 at 04:32 AM.
|