Running a proprietary Exec from Dos Cmd

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

Mike_G

Posts: 1
Joined: Thu Jun 17, 2010 12:04 pm

Post by Mike_G » Thu Jul 08, 2010 9:50 am
Trying to create a task to run an exec supplied by another company, which accepts input via the cmd line...

Using "Input File" to read in parameters as standard input, but keeps asking for a workspace..

I've tried creating a workspace, but that doesn't work either...

Has anyone anything similar?....

When you click on the exec in windows directory, a CMD window opens

Support_Julie

User avatar
Support Specialist
Posts: 91
Joined: Thu Mar 05, 2009 3:49 pm
Location: Ashland, NE USA

Post by Support_Julie » Thu Jul 08, 2010 11:25 am
Can you please post in the forum the project XML that you are trying to execute?

To accomplish this, open your project in EDIT mode.
Then click on the "SHOW XML" button. This will display the project XML.
Copy and paste the project to the forum.

Thank you.
Julie Rosenbaum
Sr Support Analyst
e. [email protected]
p. 1.800.949.4696
w. HelpSystems.com

Support_Julie

User avatar
Support Specialist
Posts: 91
Joined: Thu Mar 05, 2009 3:49 pm
Location: Ashland, NE USA

Post by Support_Julie » Thu Jul 08, 2010 3:45 pm
I see from your job log, that you are running GoAnywhere Director on an iSeries. The “EXEC” task will execute a NATIVE command on the server for which GoAnywhere is installed. Since Out-of-the-box-Windows does not allow you to execute commands remotely like the iSeries. You will not be able to use the exec task as you intend.

There are a couple work-arounds

1)
Install a copy of GoAnywhere Director on the second Windows server.
On server “A” execute a task to run a remote project. This project would be on the second GoAnywhere server.
On server “B” the project would execute the needed native command.

2)
Install the RUNPROJECT run-time module on the Second server.
In the batch project, execute your command & call the project on the GoAnywhere server.


Project XML:
<?xml version="1.0" encoding="UTF-8" ?>
<project name="Evanston_Markel" mainModule="Main" version="1.0" logLevel="verbose">
<description>Send Evanston and Markel monthly Data Feeds</description>
<module name="Main">
<exec version="1.0" executable="\home\eva\sendmarkelfile.exe" inputFile="\home\eva\Evan_Driver.txt" />
</module>
<variable name="carrier" value="EVANSTON /F" valueIsEncrypted="false" description="Evanston GL or Markel submission" />
<variable name="filename" value="evantfren_061710_test.txt" valueIsEncrypted="false" description="Submitted file name for processing" />
</project>

Portion of job log:
7/8/10 10:32:39 AM INFO Start Date and Time: 7/8/10 10:32:39 AM
7/8/10 10:32:39 AM INFO Job Number: 1278592748931
7/8/10 10:32:39 AM INFO Project Name: /test/Evanston_Markel
7/8/10 10:32:39 AM INFO Submitted By: xxxx.xxxx
7/8/10 10:32:39 AM INFO GoAnywhere Director 3.0.2 running on OS/400 V5R4M0 (ppc)
7/8/10 10:32:39 AM INFO Executing project 'Evanston_Markel'
7/8/10 10:32:39 AM INFO Project location: /linoma/goanywhere/userdata/projects/test/Evanston_Markel.xml
7/8/10 10:32:39 AM INFO Executing module 'Main'
7/8/10 10:32:39 AM INFO Executing task 'exec 1.0'
7/8/10 10:32:39 AM ERROR [8020 - exec] The file reference "\home\eva\Evan_Driver.txt" in attribute "inputFile" of element "exec" failed because a workspace has not been created for this project.
7/8/10 10:32:39 AM INFO Finished project 'Evanston_Markel'
7/8/10 10:32:39 AM ERROR [8020 - exec] The file reference "\home\eva\Evan_Driver.txt" in attribute "inputFile" of element "exec" failed because a workspace has not been created for this project.
com.linoma.dpa.runtime.JobFailedException: [8020 - exec] The file reference "\home\eva\Evan_Driver.txt" in attribute "inputFile" of element "exec" failed because a workspace has not been created for this project.
at com.linoma.dpa.runtime.Job.run(Unknown Source)
Julie Rosenbaum
Sr Support Analyst
e. [email protected]
p. 1.800.949.4696
w. HelpSystems.com
3 posts Page 1 of 1