adrian15
Wed, 07 May 2008 07:17:16 -0700
Bean escribió:
checktime * * * * * The five parameters for checktime is the same as in crontab:minute, hour, day, month and day of week. this command check if the current daytime is within the range specified by the parameters, and return true or false accordingly. Combined this with the script support for grub2, you can perform some operation in a selected time range.Can you please send me the patch to see if it is easy for me to add the code to SGD or not? Thank you.Hi, This is the patch for grub4dos, it'd be trivial to integrate it with GRUB Legacy. However, command checktime returns a boolean value, you need some sort conditional statement to make it useful, in grub4dos, you can use &&: checktime * * * * * && default 0 But GRUB Legacy doesn't support this, so you need to think of some other way to make it work, like embed the command in checktime itself.
I have received the patch but I have not worked in it yet. You say that checktime works as in crontab.minute.Can you please give me two examples (one positive and one negative) to see if I undertand how it works.
Thank you. adrian15 --Support free software. Donate to Super Grub Disk. http://supergrub.forjamari.linex.org/?section=donate
_______________________________________________ Bug-grub mailing list Bug-grub@gnu.org http://lists.gnu.org/mailman/listinfo/bug-grub