Tags:
create new tag
view all tags

SID-00859: Can't get MailerContrib to work and have a cron job problem

Status: Unanswered Unanswered TWiki version: 4.3.2 Perl version: Perl 5.8.8
Category: CategoryPlugins Server OS: Linux Last update: 15 years ago

I've installed MailerContrib from the extensions in configuration. It said it installed without any errors. On my Installed Plugins page, the list of plugins installed and enabled does not include MailerContrib, although in the next list down, All Contrib Modules, it is listed there. Under Plugin Diagnostics, it does not list MailerContrib as having any errors, but it does not list it at all.

In the config section, MailerContrib is listed in the settings. It is not listed in the Installed Plugins list. In its own section in settings, the Email Filter field is blank.

My site is installed with Godaddy shared hosting, and Godaddy provides a cron tab. I have tried to follow the suggestions in the notes provided with MailerContrib, but with no joy, getting a range of error messages, mostly /bin/sh: 0: command not found

Any help would be appreciated.

-- NormanSmit - 2010-06-07

Discussion and Answer

please past all errors here.

-- SopanShewale - 2010-06-07

Everything after <snip> in each instance is what I get from the wiki via email and is pasted into the Cron tab:

Cron <snip> 0 0 * * * cd /html/twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: 0: command not found

Cron <snip> html/twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: html/twiki/lib/TWiki/Contrib/MailerContrib: is a directory

Cron <snip> 30 0 * * * cd /html/twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: 30: command not found

Cron <snip> 00 00 * * * cd /html/twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: 00: command not found

Cron <snip> html/twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: html/twiki/lib/TWiki/Contrib/MailerContrib: is a directory

Cron <snip> cd /html/twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: line 0: cd: /html/twiki/lib/TWiki/Contrib/MailerContrib: No such file or directory

Cron <snip> MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: MailerContrib: command not found

Cron <snip> MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: MailerContrib: command not found

Cron <snip> MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: MailerContrib: command not found

Cron <snip> && perl -I bin tools/mailnotify -q Public Private

Error messages - two this time:

/bin/sh: -c: line 0: syntax error near unexpected token `&&'

/bin/sh: -c: line 0: `&& perl -I bin tools/mailnotify -q Public Private'

Cron <snip> twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: twiki/lib/TWiki/Contrib/MailerContrib: No such file or directory

Cron <snip> cd twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: line 0: cd: twiki/lib/TWiki/Contrib/MailerContrib: No such file or directory

Cron <snip> twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: twiki/lib/TWiki/Contrib/MailerContrib: No such file or directory

Cron <snip> www/cd /twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: www/cd: No such file or directory

Cron <snip> 0 0 * * * cd /twiki/lib/TWiki/Contrib/MailerContrib && perl -I bin tools/mailnotify -q Public Private

Error message: /bin/sh: 0: command not found

Hope that helps. I've been grappling with this a while, so hopefully someone has a magic bullet. I'd be satisfied with a daily report, but hourly would be optimal.

Thanks.

-- NormanSmit - 2010-06-08

You are changing to the wrong directory; perl can't find the tools/mailnotify script. If you have installed TWiki in /twiki/ you need to: cd /twiki && perl -I bin tools/mailnotify -q Public Private

-- PeterThoeny - 2010-06-08

Being one of those who has got this far through sheer persistence only and not because I have the necessary AdminSkillsAssumptions... for the install, I used the automatic installer off the back end of the Configure portion of the TWiki site, so it installed where I assumed it should install to.

Using cd /twiki && perl -I bin tools/mailnotify -q Public Private I get this error message: /bin/sh: line 0: cd: /twiki: No such file or directory

TWiki is in two places - the TWiki web that comes with the install with all of the information about TWiki is in data which I feel certain is not the TWiki you are referring to. The other TWiki is here at: twiki/lib/TWiki and that's where I find the Contrib folder which has MailerContrib

BUT, the tools folder, which contains mailnotify and mailnotify.bak are here: twiki/tools

Hope that helps?

-- NormanSmit - 2010-06-09

I tried cd /twiki && perl -I bin tools/mailnotify -q Public Private and got this error message: /bin/sh: line 0: cd: /twiki: No such file or directory

I also tried: cd /twiki/tools && perl -I bin tools/mailnotify -q Public Private and got the error message: /bin/sh: line 0: cd: /twiki/tools: No such file or directory

-- NormanSmit - 2010-06-09

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2010-08-02

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Unanswered
Title Can't get MailerContrib to work and have a cron job problem
SupportCategory CategoryPlugins
TWiki version 4.3.2
Server OS Linux
Web server Apache
Perl version Perl 5.8.8
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2010-08-02 - PeterThoeny
 
  • 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.