Rimond wrote:
I do not see any evidence of my bat file being run. My bat file for now creates a directory for testing purposes.
My GUESS would be that it is BAT file related.
First up; the location of your file; I think thats its only important that the BAT file is on your system PATH; when we are running a GEL script through the application then it is running "as" the user that owns the BG service, therefore it needs to be on the path for that user (which is where the Clarity_Home/bin dir becomes important).
...BUT when you are running it from the command line I guess it needs to be on YOUR user's PATH... so if you just type GELTEST.BAT does it work?
Next up; if your BAT script is creating directories, is it possible (likely?) that the user you are running it as does not have the permissions to create the directory (or even is not referencing the directory correctly?). Personally I'd try to get my "test" BAT file to do something much simpler than creating directories (like just dumping some text to the screen!) whilst I debugged gettting it to run and then only move up to the complicated stuff when I was convinced my script was being run correctly (or indeed at all!). (Dumping text to screen will work ok when you are running the GEL from the command line, but when you are running it from the app it will not (since the BAT is being run by the BG service))
--
In all the cases where I'm trying to get a buch of "complicated" things to all work together, I start out small, I check the obvious stuff (like is my BAT file running) before I try to do the clever things (like O/S commands; creating directories, FTPing files etc)
Dave wrote:
Not very elegant but it works
:grin: