Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Capturing sja output

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #8493
      JasonPotter
      Member

      Hi All,

      I have a situation where I need to run two sync files one after the other but the second can not run if the first did not cmplete correctly. In a linux shell script i run the first sync and redirect the output to a file. eg.

      /usr/local/sja schema1.xml > output.txt

      If you run the command without the redirect you get the final line of output being

      Total time taken – 7 sec(s)

      But when I do the redirect is does not appear in the text file.

      The problem I have is that I am looking for the text “Total tme taken” to confirm that sja complete successfully.

      A better solution would be to use the sja exit code which the variable $? should contain. But sja always exists with 0 not matter if it succeded or failed.

      Does any one have any suggestions on how to confirm that sja completed successfully?

      I look forward to the responses

      Cheers

      Jason

    • #16069
      JasonPotter
      Member

      Hi All,

      Does anyone else get the same problem as I have above or do you think it is an environment setup issue?

      Cheers

      Jason

    • #16070
      Ritesh
      Member

      Which version of SJA are you using?

      SJA bundled with 3.7x returns non-zero value on success and zero on failure. Many of our customers use SJA under the same conditions like yours and are getting correct return values.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.