Parker Software Ltd Homepage
Forum Home Forum Home > Email2DB Email Parser > Email2DB Version 3
  New Posts New Posts RSS Feed: Run A Program
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Run A Program

 Post Reply Post Reply
Author
Message
bhill2625 View Drop Down
New User
New User


Joined: 15 Aug 2012
Posts: 2
Post Options Post Options   Quote bhill2625 Quote  Post ReplyReply Direct Link To This Post Topic: Run A Program
    Posted: 15 Aug 2012 at 1:09am
I see that this topic has been covered on a few occasions, but I am still having some trouble with it.

I am trying to run a command line program (pdftotext.exe), but it does not seem to run properly.  I have verified the command line syntax, parameters, and even tried store the parameters in a batch file, all to no avail.  I have also changed the Message Processor Service to run under my local admin account rather than system.  No errors in the server log when the "Run Program" trigger action executes, just doesnt complete the action.  One last note, the pdftotext.exe is a command line only program, no GUI.

Any help would greatly be appreciated.

Thank you!
Back to Top
MartinB View Drop Down
Admin Group
Admin Group
Avatar

Joined: 02 Aug 2012
Location: Stoke-on-Trent
Posts: 20
Post Options Post Options   Quote MartinB Quote  Post ReplyReply Direct Link To This Post Posted: 15 Aug 2012 at 8:57am
We haven't come across any errors using the "Run a program" action. Any program without a GUI should work fine, as long as it is not trying to access anything that the service does not have access to, like printers.

I would recommend submitting a ticket to our Support team to look into this further for you.
Back to Top
bhill2625 View Drop Down
New User
New User


Joined: 15 Aug 2012
Posts: 2
Post Options Post Options   Quote bhill2625 Quote  Post ReplyReply Direct Link To This Post Posted: 15 Aug 2012 at 3:46pm
Thanks for the reply, Martin!

After I posted that comment, I figured out my problem.  I will share my results below as to help others that may have similar trouble.  Again, the problem I had was with a command line utility that converts pdf documents to txt files.  The syntax of the program looks like this:  
pdftotext.exe [options] [sourcefile.pdf] [outputfile.txt]

Originally, I configured the "Run A Program" trigger by pointing it to the command line executable (pdftotext.exe) then added the parameters (options / sourcefile / outputfile) without including an absolute path to the source file and output file.  Once I included the absolute path to the files, it worked fine.  

That's what I get for processing these files in the same directory as the executable, kind of forgot to tell the command line executable where to get and store the files.

Thanks!


Edited by bhill2625 - 15 Aug 2012 at 3:47pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.156 seconds.
These are the forums for Parker Software, developers of Live Chat Software: WhosOn and Email Automation Software: Email2DB.