Scripts run fine manually, but fail in a Timer Event Rule


THE INFORMATION IN THIS ARTICLE APPLIES TO:

  • EFT Server, all versions

SYMPTOM

My scripts run fine when I run them manually, but they fail when I use a Timer Event Rule.

RESOLUTION

  1. Ensure that the Windows account for the EFT Server service has the proper permission to run the script.
  2. Put the full path to the file in the "Run" action of the task, or add a PATH entry to the SYSTEM environment variables on the computer that points to the utility that you are using to run the scripts (e.g., Cygwin binaries).

MORE INFORMATION

When you run a process manually, you are running a process as your interactive Windows user, with that user's PATH settings and permissions. However, when the task is executed with an EFT Server Event Rule (e.g., a Timer rule), it is running the process as the service account, which likely does NOT have the proper path definition or permissions.

For information about creating a Windows user account for EFT and setting permissions for the account, refer to "Allowing the EFT Server Service Administrative Rights" in the online help for your version of EFT.