Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As you become more familiar with using the command line to automate the queuing of certain jobs, it becomes obvious that you can build a greater automated pipeline on top.

...

When a run is completed, the CLI will return with one of the following exist codes:

Code

Meaning

Detail

200

SUCCESS

Completed with results

204

NO CONTENT

Completed, but there were no results, so no output file

400

BAD REQUEST

There was a problem with your command

500

INTERNAL ERROR

Something went wrong

In additiona, the last two lines in the output contain the final job status, and the location of the output file (if any) on disk.

...

By parsing the exit code and these lines you will be able to take further action in your automation script, depending on the outcome of the run/job.

Code Block
languagebash
rem Example Windows batch file

rem run the command:
pc2cmd -silent -auto "C:\MyFile.xlsx"

rem When complete the exit code will be accssible in the %errorlevel% variable
if %errorlevel%==200 (
   echo "Success"
) else if %errorlevel%==204 (
   echo "Suceeded, but no output file was created."
) else if errorlevel 400 (
   echo "There was a problem with your command."
) else (
   echo "Internal error - Something went wrong"
)

While the actual implementation of automation software is beyond the scope of this article, feel free to contact support for assistance with Price Checker CLI integration.

...

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1349f
showSpacefalse
sortmodified
typeshowSpacepagefalse
reversetrue
labelstypecli advanced terminalpage
cqllabel in ( "advanced" , "terminal" , "cli" ) and type = "page" and space = "PC2"
labelscli advanced terminal
Page Properties
hiddentrue

Related issues