
The article is originally taken from http://scn.sap.com/community/unix/blog/2012/05/09/multiplebulk-transports-with-script-for-unix-aix-solaris-hp-ux-linux. Credit to Ishteyaque Ahmad
Add to Buffer Script
# Start of Script file
#! This script will add transports to buffer one by one sequentially.
# The list of transport should be given in <TRANSPORT-LIST.txt> file where
# each transport should be in new line.
###
TPLIST=/usr/sap/trans/<TRANSPORT-LIST.txt>
TPSTATUS=${TPLIST}.log
for i in `cat ${TPLIST}`
do
<TP-DIRECTORY>/tp addtobuffer $i <SID> u1 pf=<TP-DOMAIN-PROFILE-DIRECTORY>
RC=$?
print "`date`...Transport ${i} Status RC=${RC}" >> ${TPSTATUS}
done
# End of script file
Import Script
# Start of Script file
#! This script will import transports one by one sequentially.
# The list of transport should be given in <TRANSPORT-LIST.txt> file where
# each transport should be in new line.
###
TPLIST=/usr/sap/trans/<TRANSPORT-LIST.txt>
TPSTATUS=${TPLIST}.RClog
for i in `cat ${TPLIST}`
do
<TP-DIRECTORY>/tp import $i <SID> client=<CLIENT> u0126 pf=<TP-DOMAIN-PROFILE-DIRECTORY>
RC=$?
print "`date`...Transport ${i} Status RC=${RC}" >> ${TPSTATUS}
if [ "$RC" -ne 0 ] && [ "$RC" -ne 4 ]; then
break
fi
done
# End of script file
Note:
u0126 – select the unconditional mode as per needed.


