View Full Version: User Token Does Not Run In Jobdef

LawsonTalk > Coding, Program Errors and Bugs > User Token Does Not Run In Jobdef


Title: User Token Does Not Run In Jobdef


ssun - January 22, 2008 10:53 PM (GMT)
I created a very simple script that copies file1 to file2 and put this command in a user token. The command in the user token is "ksh /somepath/scriptname". The command works from the command line. But if I try to run the user token from jobdef, it goes into recovery with the following error:

Token Command. . . . . .: ksh /lawpoc1/launt/dummyscript.sh
execjob(laStartProcess): Unable to log in CORP\STEVEN.SUN
StartStep failed: Overlapped I/O operation is in progress.

I am able to run a regular Lawson batch job such as CU201 just fine. I also sync the batch password with the windows password.

We are on ENV 9.0.0.4.215

Any ideas?

MannieJ - January 22, 2008 10:56 PM (GMT)
Create a tokendef then call that definition from your jobdef

ssun - January 22, 2008 11:00 PM (GMT)
That what I did. I created the user form id in tokendef and called that id from jobdef.

area51 - January 22, 2008 11:15 PM (GMT)
Try getting rid of "ksh /..../script/" and just put "/.../script" and make the sure the script is executable, i.e. chmod +x script.sh.

Milo - January 28, 2008 10:25 PM (GMT)
Also you must put the entire string for directory location ... I tried
$LAWDIR/prod/script/*name*
but had to go to
/lawprod/law/prod/script/*name*
in order to get it to work. No "ksh" as 'area51' said.

Also see my reply in Lawson Community.



Hosted for free by InvisionFree