Unable to execute shell script from DataStage
Posted: Fri Jul 23, 2010 4:16 am
Hi,
I'm able to execute a shell script from shell which would connect to a windows server through telnet and executes set of commands and exits.
however, when i call this script from DataStage using either execsh or Execute command the script doesn't run completely. Its running till the password prompt and returns saying connection closed by foreign host. The message actually returns after exiting from the telnet connection.
telnet> Trying x.xx.xx.xxx...
Connected to xxxxxxxxxxx.
Escape character is '^]'.
Welcome to Microsoft Telnet Service
login: domain\user
password:
Please advice.
I'm able to execute a shell script from shell which would connect to a windows server through telnet and executes set of commands and exits.
however, when i call this script from DataStage using either execsh or Execute command the script doesn't run completely. Its running till the password prompt and returns saying connection closed by foreign host. The message actually returns after exiting from the telnet connection.
telnet> Trying x.xx.xx.xxx...
Connected to xxxxxxxxxxx.
Escape character is '^]'.
Welcome to Microsoft Telnet Service
login: domain\user
password:
Please advice.