scp command not working from datastage
Posted: Fri Jul 22, 2016 5:40 am
Hi,
We are calling the scp command using expect utility from our unix server to transfer a file to MDM server.
The command works fine while running from unix.
But when calling from after job sub routine/ Execute shell stage, the file is not getting transferred.
There are no error messages too. The job is completing without any errors.
The script is getting invoked. We added a puts command after the file transfer step to echo "hello" to make sure it is executed, and it prints the output.
Could you please help to identify the issue? Please let me know if more information is needed.
We are calling the scp command using expect utility from our unix server to transfer a file to MDM server.
The command works fine while running from unix.
But when calling from after job sub routine/ Execute shell stage, the file is not getting transferred.
There are no error messages too. The job is completing without any errors.
The script is getting invoked. We added a puts command after the file transfer step to echo "hello" to make sure it is executed, and it prints the output.
Could you please help to identify the issue? Please let me know if more information is needed.