At UNCG I have developed a way to remove the brackets before job capture and then adding the brackets back before the job runs. I have modified GJAJOBS to do this. This modification works when the user has the jobsub proxy or does not. Also AppMgr is running on Linux at UNCG.
IN GJAJOBS make changes as follows:
if [ "$UC4" != "true" ]
then
if [ "$UC4capture" = "true" ]
then
# UNCG Oracle Wallet Mod
USER_CHECK="`echo $3 | grep '\['`"
if [ ! -z "$USER_CHECK" ]; then
USER="`echo $3|cut -f2- -d[ |cut -f1 -d] `"
echo "captured" >> $SQLOPER_HOME/out/${1}_${5}.CAPTURE
else
USER=$3
fi
#call capture script to see if job should be captured
# UNCG Oracle Wallet Mod
#$captureDir/jobcapture.shl $1 $2 $3 $4 $5 $6 $7 $8
$captureDir/jobcapture.shl $1 $2 $USER $4 $5 $6 $7 $8
ret=$?
#if ret is 0 job was captured successfully
#else don't exit and run it
if [ $ret -eq 0 ]
then
exit 0
fi
fi
fi
.
.
.
#start gjajobs.shl
#
# UNCG Oracle Wallet Mod
if [ -f $SQLOPER_HOME/out/${1}_${5}.CAPTURE ]; then
USER="["$3"]"
echo "******Capture File Found*******"
rm $SQLOPER_HOME/out/${1}_${5}.CAPTURE
else
echo "******No File*******"
USER=$3
fi
Then replace $3 with $USER where $3 is found in GJAJOBS.