We are trying to execute a script on another server using the SSH from Teamsite (6.7.1), OS-Linux.
It is hanging ... at SSH cmd, but we checked on the target server the script is executed.
when we execute the same perl on command line outside workflow... it is working perfectly.
ssh cmd in perl: ssh dba@targetserver '~/.profile; /abcbatch/net/abcrod/ps/scripts/ps_schema_import.sh -f pmrsb -o xysrosb' 2>&1
checked the real/effective userid/groupid .. looks same for me... below are the process details of the task process and ssh process.
$ id iwmaster
uid=123(iwmaster) gid=123(iwmaster)
task process:
iwmaster 11669 28596 0 11:05 ? 00:00:00 iwperl /iwhome/iw-home/local/config/wft/nextgen/dotcom/berkeley/scripts/wft_dotcom_berkeleydb_refresh.ipl 14462914 14462920 /abc/main/dotcom/application/WORKAREA/application
ssh process:
iwmaster 11674 11669 0 11:05 ? 00:00:00 sh -c ssh dba@targetserver '~/.profile; /abcbatch/net/abcrod/ps/scripts/ps_schema_import.sh -f pmrsb -o xysrosb' 2>&1
iwmaster 11675 11674 0 11:05 ? 00:00:00 ssh dba@targetserver ~/.profile; /abcbatch/net/abcrod/ps/scripts/ps_schema_import.sh -f pmrsb -o xysrosb
there was similar thread , but no solution: /t5/OpenDeploy/ssh-command-in-WFM-external-task/m-p/146936
thanks,
Balaveera.