Linux and Python scripts, help needed

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Mon Feb 11 01:23:02 CET 2002


----- 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 
> 
> 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