execSSH Arguments
Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
3 posts
Page 1 of 1
- Posts: 14
- Joined: Wed May 21, 2014 9:00 am
Hi there,
I'm trying to use the execSSH task in version 4.6.1 and wondering how do I add arguments?
Thanks
Chris
I'm trying to use the execSSH task in version 4.6.1 and wondering how do I add arguments?
Thanks
Chris
- Support Specialist
- Posts: 62
- Joined: Thu Jul 19, 2012 9:15 am
- Location: Ashland, NE
-
Chris,
You can specify arguments as part of the command value in the execSSH task that you defined. If you want to use variables so that they can be specified dynamically you can do that as well.
Here is a sample project for you.
You can specify arguments as part of the command value in the execSSH task that you defined. If you want to use variables so that they can be specified dynamically you can do that as well.
Here is a sample project for you.
Code: Select all
<project name="Execute SSH with arguments" mainModule="Main" version="2.0">
<variable name="arg1" value="-a" description="argument to specify format" />
<variable name="arg2" value="/home/linoma/*" description="argument to specify location" />
<description>This is an example of how to specify arguments when using the execSSH task</description>
<module name="Main">
<execSSH resourceId="RemoteSSHServer" command="ls ${arg1} ${arg2}" version="1.0" />
</module>
</project>
- Posts: 14
- Joined: Wed May 21, 2014 9:00 am
Thanks Jon,
Sorry for the late reply.
Sorry for the late reply.
3 posts
Page 1 of 1