Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

-POLL X:X Function

Status
Not open for further replies.

clk430

Programmer
Sep 21, 2005
235
US
*6.7 Win2K

I use this function on the command line for my input card.

Batch Adapter
-cmd 'E:\EC\Appint\Wells401kGETFile.bat' -POLL 2:30

Basically, the batch file calles a FTP client app. If this app fails, I want this input card to exit gradefully.

However, when the app that the batch file calls fails, the maps still just remains open on the managment console. Am I missing someting?
 
How does it fail? Turn on the adapter trace. Make sure you have error handling in the batch code. How do you trigger the map? What does the map's audit log show?
Why aren't you using the FTP adapter? Does it fail before the timeout?



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
The map is triggered on a time event. This time event sents off a batch file that calls Valicert (FTP client). Valicert errors (or remains open). And we are not using the FTP adapter because we need SSL with a digital certificate.

And the map never fails - it just remains open past the time specified in the POLL setting.

So, does the POLL setting just "time out" the adapter?
 
Does the batch ftp have a tidy close? eg a bye after get or put.
 
It the batch call in the map's target or in a rule? DOes the batch itself (not the FTP call) have an exit or return code.

What happens if you call something else in the batch? Does it hang? Is this 6.7.0 or 6.7.1?

What is the actual command line?



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
OK, you guys ask too many questions. :) That's a good thing. Well, I turned on the audit log and experimented. Apparently, the application that is hanging has a built in retry function, SO, the app never really ends and remains "hung."

I suspect if the app stays open, then the POLL command is irrellevant?

FYI - the batch command is simply (on output card)
-cmd 'E:\EC\Appint\Wells401kSENDFile.bat E:\EC\Appdata\Valicert\Outbound\WellsFargo\CEEsafc1.txt' -POLL 2:30

and the batch file is just the command to start the app.
 
Actually, map should end in this case. Add a -T -A to batch command line.

I think you might also need the -F option before the .txt file name.

If the number of specified polling attempts is exhausted and the process has not yet completed, the adapter will exit with the message Command Still Executing.
This is a warning for a target, but an error for a source.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Tells adapter that E:\EC\Appdata\Valicert\Outbound\WellsFargo\CEEsafc1.txt is where the data is.

See doc.


BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Huh, it works without it. But, I'll look into the help docs, test it and use it.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top