How to determine who calls the script, server or client?

Discussion created by Lizhe on Nov 16, 2011
Latest reply on Nov 16, 2011 by Lizhe

I have a short script in my solution, which is set up to run by the server at midnight. It works fine, but only thing is when it runs, the startup and close scripts in the solution also starts and they generates a lot of errors in server log view. I wonder if the caller can be checked in the beginning of the startup and close scripts, so that only client computers get the two scripts run completely and server get skipped. Thanks.