2.2.19 Problems in Email from system

Discussion in 'General' started by fordwrench, Feb 8, 2008.

  1. fordwrench

    fordwrench Member HowtoForge Supporter

    Message 1:
    From [email protected] Thu Jan 31 13:00:01 2008
    X-Original-To: root
    From: [email protected] (Cron Daemon)
    To: [email protected]
    Subject: Cron <[email protected]> /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
    Content-Type: text/plain; charset=ANSI_X3.4-1968
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/root>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=root>
    Date: Thu, 31 Jan 2008 13:00:01 -0600 (CST)

    /bin/sh: line 1: 12287 Segmentation fault /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php >&/dev/null


    this is emails I get?

    mrfordwrench
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Can you run
    Code:
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php
    on the command line? Do you get any errors?
    Which distribution are you using? What's the output of
    Code:
    uname -a
    ?
     
  3. fordwrench

    fordwrench Member HowtoForge Supporter

    srv1:~# uname -a
    Linux srv1.50hq.com 2.6.18-4-686 #1 SMP Wed Apr 18 09:55:10 UTC 2007 i686 GNU/Linux
    srv1:~#
    srv1:~# /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php
    srv1:~#

    No errors

    Debian Etch
     
    Last edited: Feb 10, 2008
  4. falko

    falko Super Moderator ISPConfig Developer

    Can you try
    Code:
    SHELL=/bin/sh HOME=/root PATH=/usr/bin:/bin /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php
    ?
     
  5. fordwrench

    fordwrench Member HowtoForge Supporter

    srv1:~# SHELL=/bin/sh HOME=/root PATH=/usr/bin:/bin /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php
    srv1:~#


    I am not getting the emails anymore, And the commands seem to work ok.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    crontab -e
    and replace
    Code:
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php
    with
    Code:
    SHELL=/bin/sh HOME=/root PATH=/usr/bin:/bin /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php
     

Share This Page