How can a script be executed on target server without making http call?
SPecifying Allowed Deploy And Run ScriptsNote--------------------------------------------This feature is only applicable to the base server------------------------------------------------You can specify which target side Deploy and Run scripts can be run on a specific target OD server by configuring the allowedDnrs element in the targets' base server (by default odbase.xml) or receiver (by default odrcvr.xml) configuration file. The allowedDnr resides within dnrProperties element.
DNR itself says deploy n run, hence we can invoke any script...
file can modify the deployment before actually copying the files
They are normally used to clear the cache before deploying etc