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

Trinity_Chris

Posts: 14
Joined: Wed May 21, 2014 9:00 am

Post by Trinity_Chris » Thu May 22, 2014 10:41 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

Support_Jon

Support Specialist
Posts: 62
Joined: Thu Jul 19, 2012 9:15 am
Location: Ashland, NE

Post by Support_Jon » Fri May 23, 2014 9:36 am
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.
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>

Trinity_Chris

Posts: 14
Joined: Wed May 21, 2014 9:00 am

Post by Trinity_Chris » Wed Jun 04, 2014 7:11 am
Thanks Jon,

Sorry for the late reply.
3 posts Page 1 of 1