I am running the below script :
status="UNKNOWN" while [[ "$status" != "OUTPUT"]]; do echo "Checking status of job $jobid" status=$(zowe zos-jobs view job-status-by-jobid "$jobid" --rff status --rft string) echo "Current status is $status" sleep 5s done;
all the time I am getting errors like : syntax error in conditional expression: unexpected token `;'
I tried allot of combinations to solve this issue but every time I am getting different error .
PS : I am running on PowerShell of windows