Running AGS transactions from command line in version 10

 0 Replies
 1 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
petegreen
Basic Member Send Private Message
Posts: 4
Basic Member

In version 9.0.1 we were able to run ags.exe from the command line using a shell script by loading in a few environment variables and then running ags.exe from %GENDIR%/cgi-bin/ags.exe

It looks like the executable is still there but for some reason it produces an error as shown below.

I'm setting my env variables as such:

set LOGIN=NT00000002
set RMID=lawson
set REMOTE_USER=lawson
QUERY_STRING="?&_EVT=ADD&_RTN=MSG&_TDS=Ignore&_LFN=TRUE&_PDL=TEST&_TKN=CU01.1&FC=Add&_f2=XXX&_f3=XDOLLAR&_OUT=TEXT"

and then ags.exe should add a currency code to CU01.1 but instead I get this output below. 

Is there a different way of running transaction erp in version 10?
Is there perhaps a different query string?

We really need this to get one of our interfaces to work properly.


OUTPUT: 

Content-type: text/html; Charset=ISO-8859-1
Pragma: No-Cache
Expires: Mon, 01 Jan 1990 00:00:01 GMT