Part of a program I'm attempting to write involves running a command at specified times, almost exactly like the unix "cron" command. A user can specify what minutes, hours, days of the month, months and/or days of the week this command will run and I've got to run it then. The really sticky bit I'm having problems with is the fact that the user can specifiy "*" to mean any valid number. I'm wondering if anyone might be able to help me work out the basics to how to do it - so far I've got to the point where I work out when I next have to run a command, read the file and decide which commands I have to run based on the fact that I know when I last ran a command and what time it is now.
Has anyone tried to do this sort of thing? Does anyone know what I'm harping on about? Does anyone care?
I'd be totally grateful for any help or advise (or solutions :)) anyone might be able to supply!
Thanks all I can expand further if req'd.
Toot
