Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    4

    Unhappy Problems with CRON... not sure what this means

    Following instructions from some posts on the forum, I logged
    into WebPanel and added a cron job to clear out a specific email
    box each day. This is what I put:

    ------------------------------------------

    echo > home/USERNAME/mail/USERNAME/inbox

    ------------------------------------------

    I don't think it's working because I'm getting emails with the
    following....

    /bin/sh: line 1: home/USERNAME/mail/USERNAME/inbox: No such file or directory


    What does it mean and how can I get it to work?
    That directory IS there and it's a working email account.

    Also, after I get it working -- what can I put in the command
    line to make it NOT email me each time?


    Thanks for your help!

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    you need a slash before you path.


    echo > /home/USERNAME/mail/USERNAME/inbox


    Are you running this as root, or as the user?


    The simple way is to use the cron function in the user's cpanel and set "Email address where output from commands run via crontab will be sent" to :blackhole: Or you would send them to the account that is being deleted everyday

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    4

    Default

    Well, that was simple enough... thanks!

    I'm running this as a user --

    I can set it to :blackhole: for some of my domains, but there are others that I'm running scripts on that I DO want the emails from... I guess it's all or nothing?

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    All cron receipts have to go to the same place for each user, but you could set a filter to delete messages with a subject of "cron <user@server> echo > /home/USERNAME/mail/USERNAME/inbox"

    Simple enough, right?

  5. #5
    Registered User
    Join Date
    Nov 2003
    Posts
    4

    Default

    OK -- thanks so much for your help!

Similar Threads & Tags
Similar threads

  1. Cron Problems
    By manChicago in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-16-2006, 12:20 PM
  2. Cron Problems
    By bpotter in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-19-2005, 11:22 AM
  3. Cron Problems
    By nitro9net in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-11-2004, 09:10 PM
  4. What this means?
    By dominet in forum cPanel and WHM Discussions
    Replies: 23
    Last Post: 06-23-2004, 05:50 PM
  5. Cron Problems... please help
    By EcpHosting in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-25-2003, 11:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube