Linux and Python scripts, help needed
Ron Stephens
rdsteph at earthlink.net
Sun Feb 10 20:28:42 EST 2002
Chris Gonnerman wrote:
>
> ----- Original Message -----
> From: "Ron Stephens" <rdsteph at earthlink.net>
>
> > Since id dint get any mail despite putting your insert into the top
> > pf mygale.py
Thanks.
> >
> > import sys
> > sys.stdout = open("/home/ron/.error-log","a")
> > sys.stderr = sys.stdout
> > print "\n(job name) Starting..."
> >
> > I wonder if my mail is broken or if it is record somewhere else???
>
> Exactly. You misunderstood, I think... if you DIDN'T have the
> lines described, cron should send you mail. With those lines,
> all your output from the script(s) should be in the file
>
> /home/ron/.error-log
>
> and you can view them with less, more, vi, etc.
More information about the Python-list
mailing list