Hi folks --
I'm setting up a custom module for a client that will use a cron job to run the module automatically once a day. The cron command uses the ">path/autorun.html" notation to save the output of the job into a file. I'd like to have the module use a different file name each time. Ideally this would be done by including a date and time in the filename, but that's not absolutely necessary; the files could be consecutively numbered, or even semi-random, as long as they're unique. Is there a way to do that?
Thanks --
I'm setting up a custom module for a client that will use a cron job to run the module automatically once a day. The cron command uses the ">path/autorun.html" notation to save the output of the job into a file. I'd like to have the module use a different file name each time. Ideally this would be done by including a date and time in the filename, but that's not absolutely necessary; the files could be consecutively numbered, or even semi-random, as long as they're unique. Is there a way to do that?
Thanks --
Comment