![]() |
Run A Program |
Post Reply
|
| Author | |
bhill2625
New User
Joined: 15 Aug 2012 Posts: 2 |
Post Options
Quote Reply
Topic: Run A ProgramPosted: 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!
|
|
![]() |
|
MartinB
Admin Group
Joined: 02 Aug 2012 Location: Stoke-on-Trent Posts: 20 |
Post Options
Quote Reply
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.
|
|
![]() |
|
bhill2625
New User
Joined: 15 Aug 2012 Posts: 2 |
Post Options
Quote Reply
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 |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |