chrysduf
15th November 2006, 10:43
:confused: Hello,
I would like t use the session ttaad525m000 to add a script to a job.
I'm using Baan 4c4 SP21 with an OS linux.
I've created a file script and I don't know how to execute it in the session.
Thanks a lot for your help
bdittmar
16th November 2006, 17:28
:confused: Hello,
I would like t use the session ttaad525m000 to add a script to a job.
I'm using Baan 4c4 SP21 with an OS linux.
I've created a file script and I don't know how to execute it in the session.
Thanks a lot for your help
Hello,
in Job Managment use "Add shell script to job" (Session ttaad5205m000)
! Use complete path to shellscript !
e. g. /home/user/myscript
Regards
chrysduf
17th November 2006, 11:25
Hello,
in Job Managment use "Add shell script to job" (Session ttaad5205m000)
! Use complete path to shellscript !
e. g. /home/user/myscript
Regards
Hello,
Thanks for your response. I'm trying it but it's not OK.
I receive a message "Error 1 in the shell execution". Do you know how to verify the success value. Do I add a command in my shell script for this value?
If I execute my script directly on the linux server, I's OK.
Thanks a lot for your help
Regards
bdittmar
17th November 2006, 12:35
Hello,
Thanks for your response. I'm trying it but it's not OK.
I receive a message "Error 1 in the shell execution". Do you know how to verify the success value. Do I add a command in my shell script for this value?
If I execute my script directly on the linux server, I's OK.
Thanks a lot for your help
Regards
Hello,
maybe permission for script are not valid for jobuser.
for testing, set your script to 777 and try.
regards
chrysduf
17th November 2006, 12:53
Hello,
maybe permission for script are not valid for jobuser.
for testing, set your script to 777 and try.
regards
I've change the permission but always the same error
I attach a file with the error
Regards
bdittmar
17th November 2006, 13:52
I've change the permission but always the same error
I attach a file with the error
Regards
Hello,
on my HP-UX box all BaaN-Scipts in directory :
/home/ba_scripts
The owner and group of this directory are bsp:bsp.
The permission are :
drwxrwxrwx 2 bsp bsp 1024 Oct 16 16:03 ba_scripts
Maybe this is your problem.
I use the shell scripts in this directory to send a email at start and end of each job to the systemadministrators.
It works since a lot of time.
Therefore i think your problem will be solved.
Regards
Han Brinkman
17th November 2006, 15:57
In the session 'Add shell command to Job' you can define which return value of your script is the 'success full ' value.
Please run your script on command level and immediately type: echo $?
That will show you the return value of the script, this should match the one in baan.
Djie-En
20th November 2006, 15:42
The errorcode tells BAAN:
1 EPERM Not owner
==============
This error indicates an attempt to modify a file which is forbidden, except for its owner or super-user. This is also given at attempts by ordinary users to do things allowed only to the super-user.