Using Return Codes (PuTTY and AIX)

We need to call an AIX script (scriptA calls programB) from a Windows machine (batch job) using PuTTY (PLINK). ScriptA is a generic wrapper script that passes some parameters to programB. We cannot run programB directly (policy).

We've gotten a Windows batch job to log in with PLINK and start scriptA, which runs programB. This works OK, but if there is a problem we don't have any visibility into it. The most we have been able to do is get a return of 0 that means scriptA was run.

We really need to know on the Windows machine if either scriptA or programB on the AIX machine fails, so we can send an alert (custom pop- up window) to the Windows server support staff.

Does anyone here have experience in passing return codes from programB back to calling scriptA in AIX?

Does anyone here have experience in passing the AIX scriptA/programB return code(s) back to the original Windows batch job?

Thanks, Rand REMOVE snipped-for-privacy@bmwnaext.com

Reply to
Rand Reed
Loading thread data ...

This question is by no means firewall-related.

X-Post & f'up2comp.security.ssh

cu

59cobalt
Reply to
Ansgar -59cobalt- Wiechers

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.