To administer your WestHost account, please enter your
Domain Name or Server Manager Username.

WestHost: Professional Website Hosting Company








Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Senior Member FZ's Avatar
    Join Date
    May 2003
    Location
    Johannesburg, South Africa
    Posts
    1,024

    Default

    Glad you worked it out. I don't think cron runs with the same privileges as we do when we log on via SSH, which explains the home directory differences. You can actually change your home directory via your .bashrc - I've done that already and changed it to /.
    Fayez Zaheer

  2. #22
    Senior Member SJP's Avatar
    Join Date
    Aug 2003
    Location
    Orcas, Wa
    Posts
    205

    Default

    Well I'm glad you figured it out. Apparently if the cron script is missing the MAILTO keyword then any output is automatically mailed to the owner. That should have been obvious before I opened my big e-mouth :roll: Afterall, how else could you have determined if /bin/date worked? If the MAILTO keyword is present, but not set to anthing then all output is suppressed. In my case the perl script accesses the e-mail on it's own and I don't need to receive an e-mail message telling me the Perl program died, because the mail box was empty. So I have it set like this: MAILTO="" . Alternatively I suppose you could redirect the output anywhere, but I haven't tried.

    SJP

  3. #23
    Member
    Join Date
    Apr 2004
    Location
    North Hills, California
    Posts
    63

    Default

    Actually, I was redirecting the output of date to test things.

    For MAILTO=, does this go in the crontab itself. Is the syntax:

    MAILTO=user@domain
    H: faigin -at cahighways -dot org
    Learn about Judaism: http://www.mljewish.org, http://www.scjfaq.org
    Drive California Highways: http://www.cahighways.org
    Play more boardgames: http://www.boardgamegeek.com

  4. #24
    Senior Member SJP's Avatar
    Join Date
    Aug 2003
    Location
    Orcas, Wa
    Posts
    205

    Default

    Actually, I was redirecting the output of date to test things.
    Ok, but I think I had this problem when I began and consulted the man pages to learn how to turn it off. Yes, put it in your crontab. Here's mine:

    west38:~$ crontab -l
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/tmp/crontab.23049 installed on Thu Jun 26 10:21:10 2003)
    # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
    MAILTO=""
    0 */4 * * * $HOME/SJP.pl

    Your syntax is ok.

    SJP

Similar Threads

  1. HowTo Guide: Installing Subversion
    By Pachango in forum General Discussion
    Replies: 25
    Last Post: 12-17-2008, 11:08 AM
  2. HowTo Tutorial: Using and Installing SSH
    By sunzon in forum E-mail / FTP Management
    Replies: 6
    Last Post: 05-10-2008, 08:07 AM
  3. Howto guide: Installing Mailman
    By nsc in forum CGI Scripts / Perl
    Replies: 6
    Last Post: 02-06-2007, 12:57 AM
  4. Installing Perl modules with CPAN
    By jalal in forum CGI Scripts / Perl
    Replies: 19
    Last Post: 11-03-2005, 11:02 AM
  5. Upgrade SpamAssassin using CPAN?
    By j103c in forum E-mail / FTP Management
    Replies: 54
    Last Post: 06-10-2004, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •