Troubleshooting
Problem
How to confirm Windows job return code under LSF?
Resolving The Problem
There are two methods to confirm LSF Windows job return code in batch script.
1, BAT script
2, CSCRIPT script
For example, the following two scripts and related jobs will get the same results:
C:\>type ec255.bat
exit /b -1
C:\> bsub ec255.bat
Job <935> is submitted to default queue <normal>.
C:\>type return255.vbs
WScript.Quit -1
C:\> bsub cscript return255.vbs
Job <936> is submitted to default queue <normal>.
That is these two jobs will have the same LSF job exit code 255.
These two methods will be very simple and useful when you test your LSF configuration and you expect your Windows job returns a certain code under LSF.
[{"Product":{"code":"SSETD4","label":"Platform LSF"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
More support for:
Platform LSF
Software version:
Version Independent
Operating system(s):
Windows
Document number:
629641
Modified date:
17 June 2018
UID
isg3T1024251