[Mailman-Users] Python problem with cron
jonc at nc.rr.com
Fri Sep 13 06:54:39 CEST 2002
Silly question, but is it running in the mailman users cron, or in
What are the rights on /home/backup/sky...?
It could indeed be a python error, but first you should check for a
rights problem, and then for an environment variable problem (is the
"list_members" script using an environment variable that is defined
while you are logged in but not defined when run via cron?).
Is RedHat 7.1 the distro where two versions of Python are on it? What
happens if you specify the full path to "python" at the command line and
in your cron?
On Thu, 2002-09-12 at 16:41, David wrote:
> Dear gurus,
> Sorry if this is a little bit of topic, but I don't know a better place to
> ask. I upgraded to Mailman 2.1b3 a week ago and run into som cron problems.
> When I did the upgrade I also upgraded Python to version 2.2.1
> I have a couple of cronjobs that do a backup of my listmembers and put them
> on a ftp-server. One of the cronjobs looks like this:
> python /home/mailman/bin/list_members -r -o /home/backup/skydivemembreg
> If a run this command from the command line everything works perfect. When
> cron runs the same command I get this error:
> File "/home/mailman/bin/list_members", line 79
> print >> sys.stderr, _(__doc__)
> SyntaxError: invalid syntax
> The server is a RedHat 7.1. Any clues?
> Mailman-Users mailing list
> Mailman-Users at python.org
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
More information about the Mailman-Users