Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 13-07-2009
Member
 
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.!!!
Reply With Quote
  #2  
Old 13-07-2009
Member
 
Join Date: Apr 2008
Posts: 3,260
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.
Reply With Quote
  #3  
Old 13-07-2009
Member
 
Join Date: Apr 2008
Posts: 3,291
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
Reply With Quote
  #4  
Old 13-07-2009
Member
 
Join Date: Nov 2005
Posts: 3,023
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Cron no output !!"
Thread Thread Starter Forum Replies Last Post
Combining SSH and Cron void Software Development 3 06-08-2010 01:44 AM
Problem in using cron command Gunner 1 Windows Software 5 19-02-2010 01:25 AM
Cron jobs from a terminal GlassFish Windows Software 3 11-12-2009 02:58 PM
How to setup Cron Job via ssh Nalini_sh Operating Systems 3 12-11-2009 10:16 AM
Running PHP Scripts with Cron klite Software Development 5 04-11-2009 08:26 AM


All times are GMT +5.5. The time now is 05:03 PM.