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.

Running a proprietary Exec from Dos Cmd

Postby 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
Mike_G
 
Posts: 1
Joined: Thu Jun 17, 2010 12:04 pm

Re: Running a proprietary Exec from Dos Cmd

Postby 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
Software Support
Linoma Software
Support_Julie
Support Specialist
 
Posts: 75
Joined: Thu Mar 05, 2009 3:49 pm
Location: Ashland, NE USA

Re: Running a proprietary Exec from Dos Cmd

Postby 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
Software Support
Linoma Software
Support_Julie
Support Specialist
 
Posts: 75
Joined: Thu Mar 05, 2009 3:49 pm
Location: Ashland, NE USA


Return to Community Forum

Who is online

Users browsing this forum: Google [Bot] and 2 guests