Controlling PitStop Server using Command Line Interface from another Server
Posted: Thu Feb 27, 2025 5:51 pm
Hi
I trying to use PitStop Server CLI from another server. To accomplish this, I'm using PsExec to execute commands on another computer. Let me start out by stating that I'm extremely close but can't get exactly what I want to work.
Here's my testing and results so far:
1. I can run the following command on the PitStop Server VM and successfully process a PDF. This works. This is a very simple example of CLI that places a Penguin graphic on each page of a four-page blank PDF.
TEST 1
"C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "C:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output “C:\Temp\BlankWithPenguin.pdf"
Next, I map a file server share that is accessible to the PitStop server over a network connection to J. In this share is another folder named Temp that also contains Blank.pdf. This also works. This is a very simple example of CLI use that places a Penguin graphic on each page of a four-page blank PDF, however, this time, it is accessing the input from J:\Temp and placing the output to J:\Temp.
TEST 2
"C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "J:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output "J:\Temp\BlankWithPenguin.pdf"
Now we'll introduce PsExec into the mix. On the same server we mapped the J share from, will run the following command. It is the same CLI command from the first test that finds and writes to C:\Temp on the PitStop Server. Before this command is the PsExec command that calls out the IP address of the PitStop Server and provides the administrator username and password for authentication. This works and returns Error Code 0. Looking at the PitStop Server we can see the BlankWithPenguin.pdf in C:\Temp as expected. The PsExec command works, has access to the PitStop Server and can authenticate to it to run the command. (So far, so good.)
TEST 3
C:\Drivers\PSTools\PsExec.exe \\10.111.222.33 -u adminuser -p "adminPassword" "C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "C:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output "C:\Temp\BlankWithPenguin.pdf"
Finally, we get to the problem. I take the command from test 3, which worked, and change the input and output to the J drive, which I already checked in test 2 and proved that CLI can access and write to the mapped share with no issue. However, when I run this command, I get the following error returned: "201: The path to the input file is invalid. C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe exited on 10.111.222.33 with error code -1."
TEST 4
C:\Drivers\PSTools\PsExec.exe \\10.111.222.33 -u adminuser -p "adminPassword" "C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "J:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output "J:\Temp\BlankWithPenguin.pdf"
To conclude, I've read through the CLI manual and can't find anything that pertains to my problem. The manual does a good job explaining all the details of the tool, but not really how to access it from another computer. There may be some good information in the Partner documentation and videos, but I'm not allowed to view that. The Error Codes section in 2.2.3 does not go into detail on what the problem 201 as it relates to input files.
Thanks in advance for any insight the forum can offer.
I trying to use PitStop Server CLI from another server. To accomplish this, I'm using PsExec to execute commands on another computer. Let me start out by stating that I'm extremely close but can't get exactly what I want to work.
Here's my testing and results so far:
1. I can run the following command on the PitStop Server VM and successfully process a PDF. This works. This is a very simple example of CLI that places a Penguin graphic on each page of a four-page blank PDF.
TEST 1
"C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "C:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output “C:\Temp\BlankWithPenguin.pdf"
Next, I map a file server share that is accessible to the PitStop server over a network connection to J. In this share is another folder named Temp that also contains Blank.pdf. This also works. This is a very simple example of CLI use that places a Penguin graphic on each page of a four-page blank PDF, however, this time, it is accessing the input from J:\Temp and placing the output to J:\Temp.
TEST 2
"C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "J:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output "J:\Temp\BlankWithPenguin.pdf"
Now we'll introduce PsExec into the mix. On the same server we mapped the J share from, will run the following command. It is the same CLI command from the first test that finds and writes to C:\Temp on the PitStop Server. Before this command is the PsExec command that calls out the IP address of the PitStop Server and provides the administrator username and password for authentication. This works and returns Error Code 0. Looking at the PitStop Server we can see the BlankWithPenguin.pdf in C:\Temp as expected. The PsExec command works, has access to the PitStop Server and can authenticate to it to run the command. (So far, so good.)
TEST 3
C:\Drivers\PSTools\PsExec.exe \\10.111.222.33 -u adminuser -p "adminPassword" "C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "C:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output "C:\Temp\BlankWithPenguin.pdf"
Finally, we get to the problem. I take the command from test 3, which worked, and change the input and output to the J drive, which I already checked in test 2 and proved that CLI can access and write to the mapped share with no issue. However, when I run this command, I get the following error returned: "201: The path to the input file is invalid. C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe exited on 10.111.222.33 with error code -1."
TEST 4
C:\Drivers\PSTools\PsExec.exe \\10.111.222.33 -u adminuser -p "adminPassword" "C:\Program Files\Enfocus\Enfocus PitStop Server 24\PitStopServerCLI.exe" -input "J:\Temp\Blank.pdf" -mutator "C:\Program Files\Enfocus\Enfocus PitStop Server 24\Resources\Action Lists\Add\Add Penguin.eal" -output "J:\Temp\BlankWithPenguin.pdf"
To conclude, I've read through the CLI manual and can't find anything that pertains to my problem. The manual does a good job explaining all the details of the tool, but not really how to access it from another computer. There may be some good information in the Partner documentation and videos, but I'm not allowed to view that. The Error Codes section in 2.2.3 does not go into detail on what the problem 201 as it relates to input files.
Thanks in advance for any insight the forum can offer.