Hello,
I am trying to execute the Unix script from DataStage using Execute_Command Stage.
THe Unix script is(test.ksh) :-
#!/bin/ksh
echo "Test"
I have given full permission to this script.
During execution I am getting below mentioned error
Executed: sh /home/test.ksh
Reply=127
Output from command ====>
sh: /home/test.ksh: not found.
Command sh -x /home/test.ksh did not finish OK, reply = '127'
When I am executing the same script from Putty, it is working fine.
PLease guide.
Regards
NM
Unix Script not executing from DataStage
Moderators: chulett, rschirm, roy
Please comfirm the actual path to your test.ksh script.
I do not believe it is /home/test.ksh
I think it might be /home/yourUserId/test.ksh
If so, please make sure that the user id that is executing the job, has execute authority into your home directory, not for the test.ksh script in question.
it could also be something as simple as /bin/ksh may not exist.
(if you are on an AIX box, try /usr/bin/ksh )
I do not believe it is /home/test.ksh
I think it might be /home/yourUserId/test.ksh
If so, please make sure that the user id that is executing the job, has execute authority into your home directory, not for the test.ksh script in question.
it could also be something as simple as /bin/ksh may not exist.
(if you are on an AIX box, try /usr/bin/ksh )