Tags:
create new tag
view all tags

Question

I've set up a cron job to run mail notify, but I wasn't getting notifications so I added error output as shown below. The result I get is "Out of memory!". Any suggestions?

Here's the crontab file:

45 1 * * * (cd /www/x/user/htdocs/twiki/bin; ./mailnotify -q) >>/www/x/user/logs/script.log 2>>/www/x/user/logs/script.err

The cron job is running right on schedule - the script.err file was created at 1:45. The script.log had nothing in it.

  • TWiki version: Dec 2001
  • Web server: apache
  • Server OS: bsd
  • Web browser: n/a
  • Client OS: n/a

-- DaleBrayden - 17 Jul 2002

Answer

Try running ./mailnotify -q from the command line - it doesn't need any parameters and should run OK. You should get a warning of some sort - if not, see TWikiDebugging.

-- RichardDonkin - 17 Jul 2002

I don't have shell access - it's a hosted site. But - I may be able to do it from a php page. Thanks for the suggestion ... hmmmm, that seemed to work (I didn't think so at first - but it just took a while for the mail to show up). I'll try getting some help from my web host. I'll mark this question as answered since it's clear enough that the mailnotify script is working OK.

-- DaleBrayden - 18 Jul 2002

To cope without shell access, see TWikiDebugging for a CGI script that works around this - and consider re-hosting with a web host that provides telnet/SSH, as this is no more expensive (see TWikiOnWebHostingSites for various options), and much easier for debugging.

-- RichardDonkin - 18 Jul 2002

Thanks for the pointer - very nice utility. I found that (for some reason) the 'cd' wasn't working, and so the mailnotify script wasn't able to find the twiki/lib directory. Not sure why cd didn't work, or why the resulting error message was "Out of memory!", but I modified the mailnotify script use() statements to go directly to the right place, and all seems well.

-- DaleBrayden - 22 Jul 2002

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2002-07-22 - DaleBrayden
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.