Re: vmcp return code is not what is expected

2006-01-13 Thread Christian Borntraeger
Hello Michael, On Thursday 12 January 2006 22:08, Michael MacIsaac wrote: Is there a way to get vmcp to return the CP return code rather than 1? hcp behaves as I'd expect: # hcp q linux04 HCPCQU045E LINUX04 not logged on # echo $? 45 But vmcp seems to return only 0 or 1: # vmcp q

Re: vmcp return code is not what is expected

2006-01-13 Thread Michael MacIsaac
Thanks for the responses: If you don't like either one then write your own command. Two is probably enough :)) with their head and heels in the sand. Interesting - I don't want to know about it but if I must know about it then I just don't want it. :)) You can check for return code 1 and

Re: vmcp return code is not what is expected

2006-01-13 Thread Bruce Hayden
As a side bar to this conversation... I discovered that the easiest way to get the vmcp module to load at boot time with SLES 9 is to add it to the variable MODULES_LOADED_ON_BOOT in the file /etc/sysconfig/kernel as in: MODULES_LOADED_ON_BOOT=vmcp Then the boot script boot.loadmodules (assuming

vmcp return code is not what is expected

2006-01-12 Thread Michael MacIsaac
Is there a way to get vmcp to return the CP return code rather than 1? hcp behaves as I'd expect: # hcp q linux04 HCPCQU045E LINUX04 not logged on # echo $? 45 But vmcp seems to return only 0 or 1: # vmcp q linux04 HCPCQU045E LINUX04 not logged on Error: non-zero CP response for command 'Q

Re: vmcp return code is not what is expected

2006-01-12 Thread Stephen Frazier
Some time ago we had a long discussion about return codes from HCP or VMCP. They are different. HCP behaves almost like a CMS programer would expect. VMCP behaves more like a UNIX programer would expect. You get to choose. If you don't like either one then write your own command. [EMAIL

Re: vmcp return code is not what is expected

2006-01-12 Thread Rob van der Heij
On 1/12/06, Stephen Frazier [EMAIL PROTECTED] wrote: Some time ago we had a long discussion about return codes from HCP or VMCP. They are different. HCP behaves almost like a CMS programer would expect. VMCP behaves more like a UNIX programer would expect. You get to choose. If you don't