in reply to How to distinguish a crontab call and a web call

You could use a symlink or hard link, invoke the different instances with different names, and check the value of $0.
  • Comment on Re: How to distinguish a crontab call and a web call