call shell script


I am trying to call shell script located in tihe remote unix server. I am able to connect to the unix server through sftp connections. Now the challenge is top call shell script. Do we need to write one more java service for that or do we have any in built service for that.

thanks in advance,

SFTP is for file transfer, not for executing shell commands. Although beeing able to SFTP to a server may indicate you can do ssh as well.
There is no build in service for calling shell commands. But there is an OpenSSH package available (has been on Advantage, honestly I do not know where to look on Empower, maybe somebody cann add the loation here when found). This package makes use of openssh and standard commands available on the IS host.

Senior Member

let me search on openSSH package. I may get those in the sshtools. Thanks for your suggestion.

please help me if, you get the link for openSSH.



I found the download of OpenSSH sample package from below location



IMHO you don’t need any package unless you want to use purely java.
You could simply call the ssh command with proper parameters to launch command remotely.

There are also other tools (command line) available opensource to do this…

But the easiest and faster way would be to do this ssh command. If you add the public key to the server you are connecting to (authorized_keys) then you don’t even need to put a password so it will be fully automatic.


Hi Jeremy,

are we talkingabout the same thing? I have the feeling you are talking about making a ssh call from a unix shell, but I’m talking about making the call from inside webMethods, as I assume his was the original question.
How would you call an ssh command from within webMethods without using any package?


Well these are the 2 ways I just wanted to give the second one :slight_smile:

The package would mean that you would do it using Java or C (ie: a package containing the openssh jars or c libraries with flow services calling those)

At the end you are right he was mentioning packages so I guess the shell command is not an option for him …


I have got the ssh packages containing the some java services. So let me try to connect to unix server through those java services then let me write a new wM java to call the perticular shell script.