Shell script on Linux

sam1275tom

Reputable
Oct 13, 2014
462
0
4,860
Hello.
I want to write a script, that only start a program when the system clock is greater than a certain date, but I don't know how to write the following function:
check the system clock, determine if it's greater than a date, branch or loop, until the date is greater than set, then run the program.
I'm not sure if I can use cron, because the system clock will jump from a ancient date(2014) to the current, and the check point will not near them.
Thanks.
 

sam1275tom

Reputable
Oct 13, 2014
462
0
4,860


Thanks.
But I already know these two commands, they don't help me with:
Determine if the date is greater than a value,
Loop or branch structure.