how can i? open a website every 6 hrs

how can i set something up to open up a certain set of websites to open every 6hrs 1 mins?

iMac 20" 2.66GHz, Mac OS X (10.6.2)

Posted on Mar 16, 2010 11:23 AM

Reply
12 replies

Mar 16, 2010 11:57 AM in response to red.manifestation

I'll assume you use Safari as your default browser.

• Drag the URL from the Safari location bar to the Desktop (or some other convenient location) to create a webloc file.
• Create recurring events in iCal at the desired times of day. Set an "Open File" Alarm. Select the webloc file.

If you want that 1 min to be cumulative, so that the time drifts day after day, then that is going to be a lot harder.

Mar 17, 2010 2:34 PM in response to Aiex

Apparently it's a Linux daemon


No it isn't. It's a standard UNIX daemon.

A cron script would definitely let you open at drifting intervals.


Really? Off-hand, I can't see how. Cron is very good at running tasks at specific times (e.g. 10:34am every Monday, 12:15am on the first day of every months, etc.), and even reasonably good at regular intervals (e.g. every 2 hours, every 15 minutes), but there's no way with cron to set a drift.

Given that the OP wants '6 hours and one minute' intervals, you'd be looking at something like:

Monday, 00:00
Monday, 06:01
Monday, 12:02
Monday, 18:03
Tuesday, 00:04
Tuesday, 06:05
Tuesday, 12:06

There's no way for cron to do this. The only possible way I can think is to run it every 6 hours and add the delay logic to the script itself - invoke the script every 6 hours and have the script pause for a set number of minutes based on how many times it's been run. But even then you need to define some kind of limit - you don't want an indefinite counter running otherwise you'll eventually end up with a delay that's greater than the cron launch interval.

Mar 23, 2010 7:36 AM in response to red.manifestation

You might try launchd which takes over many tasks of cron as well as other stuff, and to use it you might try Lingon, http://sourceforge.net/projects/lingon/files/, although it is now out of development. I used Lingon last year and found it quite useful, whether or no it is happy under SL I do not know. But there are lots of examples on the web about how to set up an agent for launchd and it might provide an alternative.

An iCal event is probably the easiest though, and you can hook in an automator script to make things really exciting.

Lawrence

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how can i? open a website every 6 hrs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.