Results 1 to 4 of 4

Thread: Cron no output !!

  1. #1
    Join Date
    Jan 2009
    Posts
    45

    Cron no output !!

    Hello friends,
    I am not much in to it.so i need a help from from you in this scenario. i would like to delete output.i need the correct syntax to tell Cron to delete ALL output be it standard, bouncing email can i genuinely do this.lately i experimented with /dev/null 2>&1 but that does not bin bouncing email reports.

    thanks for any brilliant help.!!!

  2. #2
    Join Date
    Apr 2008
    Posts
    3,267

    Re: Cron no output !!

    I know some codes
    cat /dev/null >/var/spool/mail/<username> this will enables you to delete all mail in an inbox, before reading .Cron can do this by 13 5 * * * cat /dev/null >/var/spool/mail/<username> 2>/dev/null so that it will work everyday 05:13,but if there is any output at all Cron will mail it to you, and if it is your in box that you are deleting, then that would defeat the object.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,295

    Re: Cron no output !!

    I think it is a Perl script which is a spam guard,return email cannot be returned with the challenge then a "Could not send mail" email is produced if it is valid . and when you get 200 of these a week it comes up so want to delete by manually method. If I could get pine to delete them automatically via cron then that would be fine

  4. #4
    Join Date
    Nov 2005
    Posts
    3,026

    Re: Cron no output !!

    First way to test a script is to execute it on the command line...if that works fine then you should be able to run it from Cron...have you tried simply adding to /etc/crontab using the correct syntax and using the full path to rsync? /usr/bin/rsync. This removes the need to create another script which is then called, you might want to check your syntax for the time interval also

Similar Threads

  1. Combining SSH and Cron
    By void in forum Software Development
    Replies: 3
    Last Post: 06-08-2010, 01:44 AM
  2. Problem in using cron command
    By Gunner 1 in forum Windows Software
    Replies: 5
    Last Post: 19-02-2010, 01:25 AM
  3. Cron jobs from a terminal
    By GlassFish in forum Windows Software
    Replies: 3
    Last Post: 11-12-2009, 02:58 PM
  4. How to setup Cron Job via ssh
    By Nalini_sh in forum Operating Systems
    Replies: 3
    Last Post: 12-11-2009, 10:16 AM
  5. Running PHP Scripts with Cron
    By klite in forum Software Development
    Replies: 5
    Last Post: 04-11-2009, 08:26 AM

Tags for this Thread

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
  •  
Page generated in 1,750,492,108.91560 seconds with 16 queries