bemisgrm
21st March 2006, 15:12
I have defined a job BATCH0 in job_data.

When i run rc.startjob with BATCH0 as parameter the job get's started. When i look at the database connection, the user bsp is used.

When i uncomment in the script the line with the variable USER. and change it as below.
USER=bsp ;export USER

The script produces the error
"Connecting with bshell...
Connection established.
ba6.2: Not authorized to run as user 'bsp'
Error [main ]: Can't connect to bshell
"
I can specify any user there. It does not work

The goal is to have 2 cron jobdeamons that each have their own locale (One with ISO-8859-1, the other with GB2312

How can i achieve this?

Markus Schmitz
21st March 2006, 15:47
Hi bemisgrm,

your profile say you are using OS/400, but the question sounds very Unix like, so I will assume you are using unix for my answer:

If you run the rc.startjob for example from teh crontab of user root, but with the "export USER=bsp" command, then you need in Baan a Baan user "bsp" with System user "root". This is most likely not the case. I advise to do the following:

a) Create two unix users, for example jobiso and jobgb
b) Create two equivalent Baan users, which use these users as system user
c) uncomment the "export USER=", in the rc.startjob (you do not need it)
d) Maybe add some other commands to rc.startjob to set otherwise required variables (for example for your database etc)
e) Maintain for each user his own cron, meaning log in as jobiso and maintain his cron, than login as jobgb and add his cron entry.

Then it works as expected,

Regards

Markus