Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2003
    Location
    Panama City, FL
    Posts
    144

    Question Cron job for Mailman script gate_news

    (Starting two threads for two completely different topics...)

    I've been trying to figure out this problem for quite some time now. PReviously, I wrote a thread asking about how to get the Mailman list<->news gateway working. I'd searched before posting, and I've continue to search.

    I did finally find out part of the answer, which is that one must run the gate_news script in the cron directory under the mailman installation...

    My hosting provider doesn't want to take the time to help me figure out how to get this working; which I understand - they just want to make money. heh. But I would like to figure this out...

    Mailman documentation indicates that you can manually run this script, or call it as a cron job. The indication is that you need to:
    1. Change to the mailmain home directory
    2. Call Python to run the script, which is "cron/gate_news" (i.e. in the cron folder underneath the mailman home directory).

    I've finally gotten from my hosting provider that the mailman home directory is:

    /usr/local/cpanel/3rdparty/mailman

    Now, after looking at this, I deduce (possibly incorrectly) that cPanel installs Mailman for the entire server, not once for each site. I deduce this partially, because I logged in via shell and tried to run the script manually, i.e.:

    cwd /usr/local/cpanel/3rdparty/mailman
    [path to appropriate python] -S cron/gate_news

    (the latter command I got from list.org documentation about Mailman)...

    The feedback I'm getting is (with server references changed):

    Traceback (most recent call last):
    File "cron/gate_news", line 274, in ?
    main()
    File "cron/gate_news", line 249, in main
    lock.lock(timeout=0.5)
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/LockFile.py", line 243, in lock
    self.__write()
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/LockFile.py", line 422, in __write
    fp = open(self.__tmpfname, 'w')
    IOError: [Errno 13] Permission denied: '/usr/local/cpanel/3rdparty/mailman/locks/gate_news.lock.server2.[[[DOMAIN.COM]]].12816.0'

    (with domain.com being AFAICT the server's domain name, not my site's domain name... well, it's NOT my site's, but I believe it's either the specific server I'm on, or at least one of the servers of my hosting provider... a name I've seen a lot...)

    I'm gathering that this has got to be site-wide, and that I would, of course, be locked out, being a mere user.

    I'm gathering that I need to try and talk the hosting provider into running the cron job for me -- that if they run the cron job, it'll enable this functionality for everyone site-wide.

    Does this make sense to anyone, and does anyone have any feedback that might help me? Does it sound like I'm on the right track?

    I'm definately open to any suggestions anyone might have.

    Thank you for your insights!

  2. #2
    Member
    Join Date
    Jan 2003
    Posts
    68

    Default

    Did you (or anybody else for that matter) ever manage to get this working?

    Mav.

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    42

    Default

    run this command:

    /usr/local/cpanel/3rdparty/mailman/bin/check_perms -f

    That will fix your permissions automatically.

Similar Threads & Tags
Similar threads

  1. Cron Job, Run PHP script
    By bowers01 in forum New User Questions
    Replies: 2
    Last Post: 11-18-2010, 03:23 PM
  2. Time Script not working.... in Cron JOb
    By kiwis in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-09-2009, 08:37 AM
  3. PHP script as Cron job
    By pphas in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-07-2008, 02:20 AM
  4. Running a script immediately (but not a cron job)
    By estado3 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-12-2007, 10:06 PM
  5. Need Help with my Cron Job Script [moved]
    By psquillace in forum Data Protection
    Replies: 5
    Last Post: 08-22-2006, 12:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube