Skip to content

Commit

Permalink
Remove print of environment variables from submitted jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjorgensen authored and ThePrez committed Feb 23, 2023
1 parent d693644 commit 7917211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/jesseg/ibmi/opensource/utils/SbmJobScript.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public class SbmJobScript {
"SBMJOB_OPTS=\"JOB($SBMJOB_JOBNAME) $SBMJOB_OPTS\"\n" +
"QIBM_USE_DESCRIPTOR_STDIO=N\n" +
"export QIBM_USE_DESCRIPTOR_STDIO\n" +
"exec /QOpenSys/usr/bin/system -kpiveO \"SBMJOB CMD(CALL PGM(QP2SHELL2) PARM('/QOpenSys/pkgs/bin/bash' '-c' 'cd $(pwd) && env && exec $*')) CPYENVVAR(*YES) PRTDEV(*USRPRF) ALWMLTTHD(*YES) $SBMJOB_OPTS\"";
"exec /QOpenSys/usr/bin/system -kpiveO \"SBMJOB CMD(CALL PGM(QP2SHELL2) PARM('/QOpenSys/pkgs/bin/bash' '-c' 'cd $(pwd) && exec $*')) CPYENVVAR(*YES) PRTDEV(*USRPRF) ALWMLTTHD(*YES) $SBMJOB_OPTS\"";
//@formatter:on
public static File getQp2() throws IOException {
final File scriptsDir = AppDirectories.conf.getScriptsDirectory();
if (!scriptsDir.isDirectory()) {
scriptsDir.mkdirs();
}
final File script = new File(scriptsDir.getAbsolutePath() + "/batch_qp2.v1.sh"); // bump the version if the script contents change
final File script = new File(scriptsDir.getAbsolutePath() + "/batch_qp2.v2.sh"); // bump the version if the script contents change
if (script.exists() && script.length() > 20) {
script.setExecutable(true);
return script;
Expand Down

0 comments on commit 7917211

Please sign in to comment.