I'm writing script at tcl on ICC and trying to get error message while sending ran to sung-grid.
For example, I have the below line.
sh /usr/bin/xterm -e "cd DM ; mqsub -int -parallel 200 cal -cal -t 200 CAL_header | tee S.log ; touch .S_finished" &
since I don't have 200 free cpu, If i execute this command line at linux shell I'll get the below message: "Your "qrsh" request could not be scheduled, try again later."
How can i catch this error message at ICC with & and the end of the command?
Thanks