1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cron returning information even if I tell it not to?

Discussion in 'PHP & Perl' started by Saulyx, Dec 19, 2010.

  1. Saulyx

    Saulyx Junior Member

    Joined:
    Jan 10, 2010
    Messages:
    107
    Likes Received:
    5
    Hey guys, I got php/curl code going through cron, and it keeps returning things such as

    Code:
    * About to connect() to www.google.com port 443 (#0)
    *   Trying 209.85.225.103... * connected
    * Connected to www.google.com (209.85.225.103) port 443 (#0)
    * successfully set certificate verify locations:
    *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
     CApath: none
    * SSL connection using RC4-SHA
    * Server certificate:
    * 	 subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
    * 	 start date: 2009-12-18 00:00:00 GMT
    * 	 expire date: 2011-12-18 23:59:59 GMT
    * 	 common name: www.google.com (matched)
    * 	 issuer: C=ZA; O=Thawte Consulting (Pty) Ltd.; CN=Thawte SGC CA
    * 	 SSL certificate verify ok.
    GET /recaptcha/api/image?c=03AHJ_VuvT6mKrgGcQ3FSdYKFxDUJ5oKlOJOs45T9mXl7_MrVNf3vtCgN9a1uXFZrJ_ORi9QIbQkChJgLe0BtkE5uM5eUah6wHSxl9A85gv9_Bc3nQ_iLmRtczF5EKgRefQ7odhckfbW2MVp8hcDbYIXaGDEF9UkLkYQ HTTP/1.1
    Accept: */*
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: https://twitter.com/account/create
    
    < HTTP/1.1 200 OK
    < Expires: Sun, 19 Dec 2010 17:40:16 GMT
    < Date: Sun, 19 Dec 2010 17:30:16 GMT
    < Cache-Control: public, max-age=600
    < Content-Type: image/jpeg
    < X-Content-Type-Options: nosniff
    < X-XSS-Protection: 1; mode=block
    < Content-Length: 3440
    < Server: GSE
    < 
    * Connection #0 to host www.google.com left intact
    * Closing connection #0
    hasnt got echo, or print, or anything, cant replicate in browser, anyone could help? I got -q before the file path so It shouldnt return anything
     
  2. thedorf

    thedorf Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,214
    Likes Received:
    721
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?
    usr/bin/somecommand >> /dev/null 2>&1

    you want to add the part " >> /dev/null 2>&1" after your cron command. This tells cron to send all output to trash. Search it on G
     
    • Thanks Thanks x 1
  3. Saulyx

    Saulyx Junior Member

    Joined:
    Jan 10, 2010
    Messages:
    107
    Likes Received:
    5
    thank you sir :D seemed to work, cheers