baanprog
25th May 2005, 09:38
Hi,

Iam trying this out and it is not working any help is appreciated

ntbshell.exe -server otcxxxdothis AAA BBB 530 c:\baan\tmp\test.txt

AAA - Item
BBB - Warehouse
530 -Company
C:\baan\tmp\test.txt Path where file with output is created.

I debugged the 3GL and it works, but when i use the above version to execute it fails and I dont know where to look for errors.

How to pass arguments to 3GL script??

Can we debug this process?

Regards

Dikkie Dik
25th May 2005, 11:02
The major thing you did wrong is:

bshell6.2 [options] [program...]

so first the options, then the session name:

ntbshell.exe -server AAA BBB 530 c:\baan\tmp\test.txt otcxxxdothis

for passing parameters see the functions argv and argc.

Hope this helps,
Dick

baanprog
25th May 2005, 11:24
The options mentioned for ntbshell.exe is not the arguments we pass to the program otherwise all my arguments become options???


Regards

NPRao
25th May 2005, 20:53
bshell6.2 -server -nodebug -set BSE_COMPNR=$COMPANY -set PACKAGE_COMB=$PACKAGE_COMB $OBJECT $HOST $PORT 2>${BSE_LOG}/sockmon.log

george7a
26th May 2005, 10:14
Hello,

I have tried:

ntbshell.exe -server AAA BBB 530 c:\baan\tmp\test.txt otcxxxdothis

&

ntbshell.exe -server otcxxxdothis AAA BBB 530 c:\baan\tmp\test.txt

both didn't work! :(. Can any one tell me why?

Then I tried:

C:\Program Files\Baan\bin>bw "C:\Program Files\Baan\lib\user\newNT.bwc" otcxxxdothis AAA BBB 530 c:\baan\tmp\test.txt

It did work. But I need to log on to baan every time I use it. I know I can save the password but the admin won't like it!

Thanks

baanprog
27th May 2005, 16:39
Hi NpRao,

what you have illustrated is it for UNIX or for WindowsNT???

Also as the other guy has mentioned I dont want to login either everytime.

Regards

NPRao
27th May 2005, 20:06
yes its on Unix, its from one of our shell scripts.

george7a
30th May 2005, 09:29
So,

Is there a way to do this in NT too?

Can I execute the 3GL program from a command line without logging on to baan (If I am already logged on)? :confused:

george7a
20th July 2005, 15:55
Shall we forget about executing the 3GL program from command line without logging on to baan (if it was opened) ??

is it doable in NT :( ?

victor_cleto
20th July 2005, 16:41
Apparently yes, on unix you are already identified when you are running a command from the shell (like calling the ba6.1), this is not possible on Windows unless you save your password on the bwc - as mentioned all over the threads, unix does offer advantages that Windows does not...

rajeshell
26th December 2011, 12:33
The below format did work for me in NT.
ntbshell.exe -server otcxxxdothis AAA BBB 530 c:\baan\tmp\test.txt
But the only thing is it has to be executed on server.
and offcourse I used Command promt to invoke the above 3GL.