Error Checking on UNIX
Jeff Hoffman
wonicon at optusnet.com.au
Tue Feb 7 06:27:50 CST 2006
Hi
I would suggest setting an environment variable, then testing the env var,
this way you keep the status code and can display it later on. The status
$? is changed as soon as you issue another command for example the if.
qtp auto=someprogram.qtc
STATUS=$?
if [[ $STATUS != 0 ]]
then
echo "QTP Error - Program someprogram Aborted - Status $STATUS"
fi
Jeff
At 06:36 AM 7/02/2006, you wrote:
>Checking for the Unix environment variable not equal to zero after
>running a qtp program indicates some kind of qtp failure:
>
>qtp auto=someprogram.qtc
>if [[ $? != 0 ]]
>then
> echo 'QTP Error - Program someprogram Aborted'
>fi
>
>-----Original Message-----
>From: powerh-l-bounces+dirk.rohde=vpgroup.com at lists.sowder.com
>[mailto:powerh-l-bounces+dirk.rohde=vpgroup.com at lists.sowder.com] On
>Behalf Of Blair Combs
>Sent: Monday, February 06, 2006 11:26 AM
>To: Powerhouse Listserv
>Subject: Error Checking on UNIX
>
>We are migrating to UNIX from MPE.
>
>On MPE we use a combination of JCWs and VARs in command files to
>determine if a Quiz or Qtp completed successfully before continuing.
>
>What is the best approach to determine successful completing on UNIX?
>
>--
>
>Blair Combs
>Idaho State University
>
>--
>
>= = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list:
>powerh-l at lists.sowder.com
>Subscribe: "subscribe" in message body to
>powerh-l-request at lists.sowder.com
>Unsubscribe: "unsubscribe <password>" in message body to
>powerh-l-request at lists.sowder.com
>http://lists.sowder.com/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>
>--
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l at lists.sowder.com
>Subscribe: "subscribe" in message body to powerh-l-request at lists.sowder.com
>Unsubscribe: "unsubscribe <password>" in message body to
>powerh-l-request at lists.sowder.com
>http://lists.sowder.com/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
More information about the powerh-l
mailing list