I am trying to use Scott Kelement's UNIXCMD (https://www.scottklement.com/unixcmd/) to compare text files on the IFS. I'm trying to do this in a loop, comparing a batch of files using DIFF.
When a difference is found, I am able to read the results back, but then when I call CLOSE UNIX I get a "Child process ended with status 1" error.
This is where I am stuck. I have tried reading to EOF on the special file, but this gives the same error when I try to close. When there is no difference in the files the call to close works fine, the problem only arises after reading a non-empty reply to the qsh program call. I've also tried the CMP command with the same results.
I've stepped into the program with the debugger but the inner workings of UNIXCMD are above my pay grade so I could use some advice on where to look next.
When a difference is found, I am able to read the results back, but then when I call CLOSE UNIX I get a "Child process ended with status 1" error.
This is where I am stuck. I have tried reading to EOF on the special file, but this gives the same error when I try to close. When there is no difference in the files the call to close works fine, the problem only arises after reading a non-empty reply to the qsh program call. I've also tried the CMP command with the same results.
I've stepped into the program with the debugger but the inner workings of UNIXCMD are above my pay grade so I could use some advice on where to look next.



Comment