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?
Create a tokendef then call that definition from your jobdef
That what I did. I created the user form id in tokendef and called that id from jobdef.
Try getting rid of "ksh /..../script/" and just put "/.../script" and make the sure the script is executable, i.e. chmod +x script.sh.
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.