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