0

Possible Duplicate:
In php, how to detect the execution is from CLI mode or through browser?

How to test if a cron is executed only by the server

Thanks

Community
  • 1
  • 1
user1475195
  • 59
  • 1
  • 1
  • 6

1 Answers1

1

Cron will never put anything on the display unless you use something like 'wall' in your cron script.

Are you redirecting your output to a log file or anything?

What you can do is to add a line at the bottom of the script you are executing in the cron; that does something like:

date +"%D %r `echo Cron completed`" >> /tmp/cron_job.log

Then you could check

cat /tmp/cron_job.log

and it would tell you when it finished.

fanbondi
  • 1,035
  • 5
  • 18
  • 37