GeoffW
ADSM.ORG Member
We are trying to execute TSM scripts from AIX using the dsmadmc command line:
e.g.
$ dsmadmc -id=XYZ -pa=ABC 'run TSM_SCRIPT'
The problem we're having is trying, somehow, to retrieve return codes from the script back to AIX.
What is currently happening, understandably, is the above command always returns a 0 because it was successful in executing the command argument provided - it doesn't care what happens in the script.
What we would like to happen is that, should any non-zero return codes be encountered by the script, they would be reflected in the return code of the above command.
Has anyone ever done this, or is it even possible?
Thanks,
Geoff
e.g.
$ dsmadmc -id=XYZ -pa=ABC 'run TSM_SCRIPT'
The problem we're having is trying, somehow, to retrieve return codes from the script back to AIX.
What is currently happening, understandably, is the above command always returns a 0 because it was successful in executing the command argument provided - it doesn't care what happens in the script.
What we would like to happen is that, should any non-zero return codes be encountered by the script, they would be reflected in the return code of the above command.
Has anyone ever done this, or is it even possible?
Thanks,
Geoff