Results 1 to 2 of 2

Thread: Cron.php help - what does /dev/null 2>&1 do?

  1. #1
    monsta is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Brighton, Sussex - UK
    Posts
    19

    Default Cron.php help - what does /dev/null 2>&1 do?

    I'm trying to find out why my incoming email cron job isn't running.

    I have added the line to crontab and restarted the service.

    It's still not running. I tried running it from the command line and it appears to work ok but still the job doesn't run.

    If I run cron.php on it's own I get a mysql connection error.

    What does the > /dev/null 2>&1 bit do?

  2. #2
    tdp
    tdp is offline Sugar Community Member
    Join Date
    Sep 2005
    Posts
    74

    Default Re: Cron.php help - what does /dev/null 2>&1 do?

    That pretty much dumps any output to the null device, i.e. it throws it away. If you remove that, cron should email you the results of running the job (provided you have a mailserver enabled).
    Todd Pihl

    Human Worklfows LLC
    Rockville, Maryland USA

    Slackware 11.0 running kernel 2.6.17.6
    MySQL 5.0.24a
    PHP 5.1.6
    Apache 1.3.37

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. cron.php not running as expected
    By cenforsberg in forum Help
    Replies: 1
    Last Post: 2006-08-24, 04:44 PM
  2. Replies: 2
    Last Post: 2006-07-28, 11:50 AM
  3. cron.php bugs
    By jasoneisen in forum Help
    Replies: 3
    Last Post: 2006-03-07, 06:45 PM
  4. Replies: 1
    Last Post: 2006-01-10, 11:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •