Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
cronjob emails me script errors
Results 1 to 3 of 3

Thread: cronjob emails me script errors

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    cronjob emails me script errors

    Hi,

    Im running a bash script through cron. it executes a perls script that usually have insignificant errors that I don't care about. however it keeps emailing them to me. I've set up the bash script like this

    perl myscript.pl >> /dev/null

    but I still get emails with errors from the perl script.

    any ideas?

    thanx,

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    472

    Re:cronjob emails me script errors

    You are only redirecting stdout - you want to send stderr to /dev/null

    perl myscript.pl 2> /dev/null


  3. #3

    Re:cronjob emails me script errors

    [quote author=ph34r link=board=9;threadid=7245;start=0#66902 date=1056115169]
    You are only redirecting stdout - you want to send stderr to /dev/null
    perl myscript.pl 2> /dev/null[/quote]
    you might actually want > /dev/null 2> /dev/null
    or > /dev/null 2>&1
    or &> /dev/null

    all those do the same thing and that is send both stdout and stderr to /dev/null

Similar Threads

  1. Mails of CronJob!
    By honey bee in forum Linux - General Topics
    Replies: 1
    Last Post: 07-07-2008, 12:22 AM
  2. Duplicate emails after importing pst
    By jonfa in forum Windows - General Topics
    Replies: 0
    Last Post: 08-04-2006, 09:06 AM
  3. CronJob - Server load
    By markwaugh in forum Linux - General Topics
    Replies: 1
    Last Post: 07-28-2004, 10:39 AM
  4. Strange emails
    By cloverm in forum General Chat
    Replies: 13
    Last Post: 01-14-2004, 01:26 PM
  5. app that emails user when account will expire
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 05-05-2003, 03:28 PM

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
  •