in reply to Output from a cron job should...

Unless there is more to your script than what you are showing, you have an unmatched right curly brace. At a guess, there might be something with how you are opening the log file but without seeing more of the code, it is hard to say.

Replies are listed 'Best First'.
Re^2: Output from a cron job should...
by Anonymous Monk on May 13, 2004 at 14:16 UTC
    Nimdokk, There is more to the code than what I have, and I have taken care of the curly braces too....The thing is the code works just fine when I run it from cmd line....the problem comes up when I try to put it on a cron... herveose...... I understand what you are saying about using 2 files....but we already hav a kron job which uses about 4 files...we want to put this job in 1 file.