r_nagu
22nd February 2007, 23:56
Hi,
Ok, this really beats me. It’s probably something I am overlooking.

I have a shell script, which looks like the following:

bshell6.1 -server -set BSE_COMPNR=100 -set PACKAGE_COMB=B40Ocpro otipcsn900 &


When I run this shell script at the command prompt it works fine but when I call this shell script from a 3GL script from BaaN, it does not work. All I have in the 3GL script looks something like this:

shell("./runprog", 0)

If I take out the “&” at the end of the bshell6.1 command, it works fine. I am adding the “&” so that I can run this command in the background.

Any suggestions? Appreciate your help.

Thanks,
NS

mark_h
23rd February 2007, 00:28
Why not use SHELL_BACKGROUND for the mode and leave the & out?

r_nagu
23rd February 2007, 00:38
Yes, why not. I just used it and it works like a charm. I was so fixated on putting the thing in the background that I didn’t think of using this option.

Thanks Mark.

NS