JCShell error handling script?
Hi,
In JCShell, I need to set a variable in a script,
if my upload app command gives an error, I want to delete it and then install the cap file.
I am not able to capture this delete error bcoz the shell exits the script immediately on a failure.
the script looks like:
/card
auth
card-info
#install the cap file
upload -d "xyzApp.cap"
#if cannot install, delete the package and retry
#if ${DeletePkg} == 1
delete -r |xyz
upload -d "xyzApp.cap"
#end
Is it possible to set the variable "DeletePkg" to 1 or 0 depending on the status word received from upload cmd?
Or get info from card-info and then decide to send the delete cmd or not?
Thanks,
priti

