imscp-vrl-traff output a message.

  • The following mails are transmitted by imscp-vrl-traff.
    Please let me know a cause.:huh:


    subject:
    Cron <root@XXXXXX> umask 027; /var/www/imscp/engine/traffic/imscp-vrl-traff &>/var/log/imscp/imscp-vrl-traff.logt:


    E-mail text:
    TERM environment variable not set.


  • Try change in /etc/cron.d/imscp in umask 027; term = linux; /var/www/imscp/engine/traffic/imscp-vrl-traff &>/var/log/imscp/imscp-vrl-traff.log


    what SO do you use?

  • Try change in /etc/cron.d/imscp in umask 027; term = linux; /var/www/imscp/engine/traffic/imscp-vrl-traff &>/var/log/imscp/imscp-vrl-traff.log


    what SO do you use?


    Although tried, the result did not change.
    I create sh and correspond.
    Thank you.

  • as matter of fact case matter so it supposed to be:

    Code
    1. umask 027; TERM=linux; /var/www/imscp/engine/traffic/imscp-vrl-traff &>/var/log/imscp/imscp-vrl-traff.log

  • as matter of fact case matter so it supposed to be:

    Code
    1. umask 027; TERM=linux; /var/www/imscp/engine/traffic/imscp-vrl-traff &>/var/log/imscp/imscp-vrl-traff.log


    Although the specified contents were tried, since something is outputted, e-mail is transmitted.


    Execution of this perl script is outputting something.
    It will be why.


    Environment
    Ubuntu 10.4 64bit
    i-MSCP 1.0.1.5 (beta5)


  • as matter of fact case matter so it supposed to be:

    Code
    1. umask 027; TERM=linux; /var/www/imscp/engine/traffic/imscp-vrl-traff &>/var/log/imscp/imscp-vrl-traff.log


    When changed as follows, "TERM environment variable not set." disappeared.
    However, since something is outputted, e-mail is transmitted.

    Code
    1. umask 027; export TERM=vt100; /var/www/imscp/engine/traffic/imscp-vrl-traff &>/var/log/imscp/imscp-vrl-traff.log


  • Try to set the MAILTO variable at begin of crontab like this


    Code
    1. MAILTO=""

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206


  • Try to set the MAILTO variable at begin of crontab like this


    Code
    1. MAILTO=""


    Thank you for the reply.
    However, all mails generated in cron table will stop at this correspondence.
    I cannot consider to a solution.

  • try

    Quote

    umask 027; /var/www/imscp/engine/traffic/imscp-vrl-traff 2>&1 1>/dev/nul

    :D

    Edited once, last by oldev01 ().


  • try

    :D


    E-mail is not transmitted if it is this correction.
    It is a problem that something is outputted by standard output.
    But is it good at really such correction?
    [hr]


    try

    :D


    This correction is also possible if good by the same method.
    Is it really good at this correction?


    Code
    1. my $rs = 0;
    2. exit 1 if traff_start_up();
    3. $rs |= traff_count();
    4. close(STDOUT);
    5. exit $rs;

    Edited once, last by kazuo ().