(first off, "Hi", this is my first post here though I am active in a few Linux forums):beer
I have a FreeBSD 8.2 web server that a co-worker set up. I am trying to get cron to run a script I have which takes a text file (a database query uploaded by another server) and puts the data in the proper PostgreSQL database, emailing me if there are any errors.
What I have found is cron is running on UTC time, not local time. So setting the crontab to run at 5:30 AM results in it running 5:30 UTC, or 12:30 AM local time. This ends up updating the database before the new text file is uploaded!
Is there a way to have it run based on local time either for [1] the specific job, [2] specific user or [3] globally?
I could take the cron job and set it to <desired time> + 5 but then there is daylight savings time and coordinating to make sure the other server uploads the text file early enough to handle the fluctuation.
Thanks for any help!
I have a FreeBSD 8.2 web server that a co-worker set up. I am trying to get cron to run a script I have which takes a text file (a database query uploaded by another server) and puts the data in the proper PostgreSQL database, emailing me if there are any errors.
What I have found is cron is running on UTC time, not local time. So setting the crontab to run at 5:30 AM results in it running 5:30 UTC, or 12:30 AM local time. This ends up updating the database before the new text file is uploaded!
Is there a way to have it run based on local time either for [1] the specific job, [2] specific user or [3] globally?
I could take the cron job and set it to <desired time> + 5 but then there is daylight savings time and coordinating to make sure the other server uploads the text file early enough to handle the fluctuation.
Thanks for any help!