monica1
18th May 2006, 10:33
I don´t know if it is the correct place to this question. I need to execute a Baan session (3GL session) when a trigger of our machine is activated. There is any command we can use to execute the session?

Thank you in advance

Han Brinkman
18th May 2006, 12:32
As far as I know just

bshellx.x o<package><module><object code>

works, e.g. bshell6.1 otccomo999

Make sure that env. variables like BSE and BSE_TMP are set.

Regards,
Han

monica1
18th May 2006, 12:34
Thank you very much, I try with it.

dave_23
18th May 2006, 13:48
Looks like you're Baan5b? you can run ba6.2 <session>
this will work assuming you don't have too fancy of a form.

If you don't need to specify different parameters each time you run the
session, you can just make it a job and kick it off via rc.startjob

Dave

monica1
18th May 2006, 13:54
Thank you. The session we want to start don´t have any form and don´t have parameters. Only read a table and then create/modify a Sale Order.
Now we have the session in a PC every day running and it takes a lot of resource of the machine.

That we want to do is that with an external program activate a trigger (when it is was necessary) in our machine that start the session that now we have running everytime. We think this can be fine.

dave_23
18th May 2006, 14:25
ba6.2 would be fine then.

Dave

Ajesh
28th March 2016, 06:27
I had a question on similar lines.


What if i had to run a Create Runtime Session in baan through Unix? Can i do bshell6.1 ottadv5210?

And the second question is what if i have to set some parameters to run the session, How do i set?

NPRao
28th March 2016, 19:07
What if i had to run a Create Runtime Session in baan through Unix? Can i do bshell6.1 ottadv5210?
The ottadv5210 is not a 3-GL program. Yes, you setup the session ttadv5210m000 in a job, however it might not be recommended as sometimes there are questions or error messages flashed during that process and end up with fatal run-time errors.
And the second question is what if i have to set some parameters to run the session, How do i set?
You have to setup the standard Baan environment variables in the batch/shell scripts that activates the jobs.

bhushanchanda
29th March 2016, 18:55
Hi,

Also note, you need to create the job in 000 company.

Ajesh
30th March 2016, 08:57
The ottadv5210 is not a 3-GL program. Yes, you setup the session ttadv5210m000 in a job, however it might not be recommended as sometimes there are questions or error messages flashed during that process and end up with fatal run-time errors.

You have to setup the standard Baan environment variables in the batch/shell scripts that activates the jobs.


Thanks for the answer NPRao. I appreciate.

So let me understand it correctly. If it is a 3GL script only then can i run the Baan Script from Unix or the OS and if its a 4GL i cannot run the Session/script from the Unix?

NPRao
30th March 2016, 21:57
So let me understand it correctly. If it is a 3GL script only then can i run the Baan Script from Unix or the OS and if its a 4GL i cannot run the Session/script from the Unix?
Correction - I was stating that the ottadv5210 is not a 3-GL program in the context of the discussion. Any print/process session with 3-GL or Type-4 script can be added to a Baan Job which can be triggered by any scheduler (Unix or Windows). if you want to trigger a session from command line or shell script then yes, it has to be a session with 3-GL script.