artjuh
4th November 2002, 14:31
I have a prob... "figures" ;)
i putted an lline in my ipc_info that say's
"test s 0 0 p ${BSE}/bin/login.test"
if i change my login dialog and change my bshell name to "test" and login with "bsp"
i get an BW message windows that says
1 : Recieved from server: 'Can't execv /baan/bse/bin/login.test (errno = 8)'
2 : Error : bw failed to connect to "serverip"!test

also i get an msgbox saying "Cannot setup an connection with the Bshell"

my login.test script contains only the line
"sh ${BSE}/bin/bshell6.1"
the file is chmodded 777 and cdmod +x
so everybody can execute it.
but it wont start my bshell script. anyone ideas ?

Tnx in advanced,

Artjuh

jaapzwaan
4th November 2002, 15:59
Artjuh,

I'm not completely sure, but try this:

in you ipc_info file change the line to:
test s 0 0 p /bin/sh ${BSE}/bin/login.test

In the file $BSE/bin/login.test replace your line with:
${BSE}/bin/bshell6.1
(remove the "sh" at the beginning, because $BSE/bin/bshell6.1 is most likely not a shell script, whereas your script (login.test) is.

Regards,
Jaap Zwaan

artjuh
4th November 2002, 16:06
I tried it. but no sucses.
thnx anyway.
does anyone has other sugestions ?

Greets,
Artjuh

jaapzwaan
4th November 2002, 17:34
Artjuh,

Did you get the same message? The message indicates that execv didn't work.
Execv is a way for creating a new process in Unix. Error 8 indicates "Exec format error". This makes sense, since your script is not an executable object (it is a script that has to be read by /bin/sh or other interpreter).

I know that this is not the complete answer, but I hope it points you to the right direction.

Regards
Jaap Zwaan

Han Brinkman
4th November 2002, 21:08
should be like


exec $BSE/bin/bshell6.1 $*


so that it will pass all arguments that you scripts receives.

The exec will change your script in the executable so that your system will not be filled with running scripts.

It's not stated in your post but I hope you are running on Unix? haven't seen this working on NT. However I guess that it should be possible on that platform as well.

Rgrds,
Han

victor_cleto
6th November 2002, 00:10
this was followed and solved here: http://www.baanboard.com/baanboard/showthread.php?s=&threadid=1983