1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

usr/bin/php vs. usr/bin/GET

Discussion in 'Site & Server Administration' started by emeraldibex, Nov 23, 2005.

  1. #1
    Can someone tell me the difference between these two cron jobs:

    * * * * * usr/bin/php http://site.com/script.php

    * * * * * usr/bin/GET http://site.com/script.php

    (Yeah, yeah, one says "php" and one says "GET". How are they functionally different?)

    Thanks.
     
    emeraldibex, Nov 23, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    The first one isn't going to do anything because it's a URL... you are trying to get PHP to run a PHP script with the first line. Which isn't possible because the URL will not give you the PHP source code.

    The 2nd one I'm not sure, because I don't know what the "get" command is. Is it something to download a webpage?
     
    digitalpoint, Nov 23, 2005 IP
  3. alext

    alext Active Member

    Messages:
    406
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    68
    #3
    Are you sure this:
    usr/bin/GET

    is not this:
    usr/bin/wget

    " GNU Wget is a free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc."
    http://www.gnu.org/software/wget/index.html#introduction
     
    alext, Nov 23, 2005 IP
  4. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #4
    /usr/bin/GET comes standard with perl 5.x and fetches the URL with a GET request :) there is also a /usr/bin/POST that does a POST request.


    to answer your question: the first one shouldnt work :) the second cronjob should work on any standard unix box.
     
    frankm, Nov 23, 2005 IP