refresh url once a day

refresh url (not on my server --call it google.com) once a day at 8am

I am using windows7 (but have access to linux also)

LVL 1
rgb192Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

digusCommented:
Not sure I understand - you need the browser to automatically refresh itself at 8am - just like someone hitting the F5 key?
0
cwstad2Commented:
I think this is done more in the source of the webpage rather than on the application itself.
0
Maen Abu-TabanjehNetwork Administrator, Network ConsultantCommented:
what do you want to do? details are missing , please post details to help you
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

digusCommented:
Here is an add-on for Firefox:
ReloadEvery 7.0.0
Reloads web pages every so many seconds or minutes.

https://addons.mozilla.org/en-US/firefox/addon/reloadevery/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Maen Abu-TabanjehNetwork Administrator, Network ConsultantCommented:
you are using windows 7 , why the zone is linux?
0
Gerwin Jansen, EE MVETopic Advisor Commented:
Hi, on what machine do you wish to refresh which URL? Is it some sort of 'news' system that has to refresh at the beginning of the day? Please explain a bit more, thanks.
0
Ray PaseurCommented:
Do you want to read the HTML once a day?  Are you using a browser?  
0
DanielleFavreauCommented:
digus' solution works perfectly for Firefox, I use it daily on several systems that require 15 minute updates - but you can set it to update at any time.  Just remember to enable it and not just set the time.
0
rgb192Author Commented:
the firefox addon 'reload every' will not allow me to reload a webpage once a day


the url I wish to load once a day is one where email will be sent

if it is reloaded too many times, then many emails are sent


i am using windows 7, but will consider doing this in ubuntu linux
0
DanielleFavreauCommented:
Having a program rely on a browser window refreshing to send an e-mail is a very bad idea for many reasons. You should set something like this as a CRON job.

That said, use reload every, right click the window and choose Reload, and set it for Custom with 1440 minutes (you can type the number in - you don't have to use the values in the drop down).

It will work.
0
digusCommented:
Setting it to 1140 minutes will reload the page every 24 hours.
0
DanielleFavreauCommented:
1140 is 19 hours.

1440 is 24 hours.
0
digusCommented:
Good catch..;)
0
DanielleFavreauCommented:
It's a number I reference often in code. :)
0
HemantShingeCommented:
0
Ray PaseurCommented:
the url I wish to load once a day is one where email will be sent
if it is reloaded too many times, then many emails are sent


If I understand this correctly, you have a GET-method script that will send an email any time someone accesses the URL?  I would not do it that way; I would use a CRON job instead.  And since this takes an action that is more than simply data retrieval, you must not use a GET request to trigger it.  GET is only for data retrieval from server to client.  Technically you may not be changing your data model when the email is sent, but you're changing the recipient's data model.  

Also, I would make sure that this script is not where it can be found by a web browser or Google.  Put it outside of the WWW root, just to be safe.
0
IPBKFCommented:
In your terminal type

crontab -e

and add the following line at the bottom

1 0 * * * curl "http://yoururl.com" > /dev/null

This will call on yoururl.com one minute past midnight every night.
0
rgb192Author Commented:
this is the easy (may not be the best) solution I used
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.