Originally Posted by jschiwal
Look at the return code and use the result to determine whether to quit your script.
But how I look return code. Because it is not returning anything.
According to Xdialog --infobox if we press cancel or close button infobox will close but the process is not.