tmannais
7th August 2019, 09:26
I have a BECS configured to an LN server.
The config file is a test.bwc file.
In the Command input of that config file, if I put -- -set NO_WORKTOP=1 then it runs fine.
Now I want to run that BECS via cmd but I cannot send the options in.
I tried

test.bwc -- -set NO_WORK_TOP=1

but it just runs normally. The option is not working because there is an error as if the command is not there. If I put the command in the config and just run

test.bwc

then it works but that is not I want to do.
I actually want to be able to run the BECS with options. So that I can run a particular session with dynamic inputs to that session.
In the end, I want to achieve something like this http://www.baanboard.com/baanboard/showpost.php?p=166387&postcount=9 and, if possible, find a way to output back to the cmd.

tmannais
7th August 2019, 10:45
I got it working by calling bw.exe before the .bwc.

bw.exe test.bwc -- -set NO_WORKTOP=1

The only question now is that how can the session output back to the cmd?
Any suggestion?

mark_h
7th August 2019, 14:26
So the BWC launches a session which generates output? Not familiar with worktop, but couldn't you just write a file on the server and download to somewhere on the client. I was assuming the cmd was a command file not just a command line.

Ajesh
7th August 2019, 16:32
I remember in the Unix environment there was a command which was present in $BSE/bin, ba6.1 which could have run your session on command prompt(After setting the environment variables like BSE,BSE_TMP), not too sure about the analogous command in the Windows Environment now..

NPRao
7th August 2019, 20:10
Refer to the threads -

Run Baan function from script (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=5794&highlight=bshell6.2)

Question Running a Baan script from UNIX command line; ba6.1 runtime options (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=6850&highlight=bshell6.2+server)

rc.startjob doesn't work (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=5882&highlight=bshell6.2+server)

ba6.2 and bshell6.2 (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=537&highlight=ba6.2)