Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6857769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:04:12+00:00 2026-05-27T02:04:12+00:00

with this cronjob: 0 * * * * usr/bin/open http://www.myurl.com/mypage.php I open this URL

  • 0

with this cronjob:

0 * * * * usr/bin/open http://www.myurl.com/mypage.php

I open this URL every hour from my OS (MacOS). When called this way, MacOS opens the default browser and reaches that web page.

Is there any way to modify my cronjob to request a webpage without opening it with browser?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:04:13+00:00Added an answer on May 27, 2026 at 2:04 am

    Use curl instead of open. It is installed on OS X by default.

    If you just want it to open the URL and to discard any contents and not worry about any error handling, you can do something like this:

    0 * * * * /usr/bin/curl -s http://www.myurl.com/mypage.php > /dev/null
    

    Chances are, though, that you care about error handling and possibly saving the output as well. There are lots of options to get it to do exactly what you want, so check the documentation.*

    *From a terminal window on your Mac, you can type man curl and it should give you some information. It may not be the most easy to digest depending on your comfort level with old-school Unix documentation. But you should at least be able to get an idea of what all the different command line flags do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to setup a cron job command to execute an URL? /usr/bin/wget -q http://www.domain.com/cron_jobs/job1.php
when running a cron job like this: curl http://example.com/cronjob.php The output email contains this:
I created a cronjob which call a php-script every 5mins. This PHP script needs
I have a cron job set up to run testemail.php. This works fine, every
The section Last links in the chain: Stashing and the reflog in http://ftp.newartisans.com/pub/git.from.bottom.up.pdf recommends
Lets say I have a cronjob like this: every 1.day, :at => '4:30 am'
I am setting my cronjob as: */5 * * * * /usr/local/lib/php /home/..app/webroot/cron_dispatcher.php /devices/checkForAlert
My cron job is running an hour later after end of DST. This didn't
This is a difficult and open-ended question I know, but I thought I'd throw
This is my first post here and I wanted to get some input from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.