A shell script:
ud32 -un -C tpsysadm < $1
A script:
SRVCNM .TMIB
TA_CLASS T_SERVER
TA_OPERATION SET
TA_SRVGRP GRP1
TA_SRVID 10100
TA_SERVERNAME load
TA_STATE NEW
TA_MAXGEN 200
TA_REPLYQ Y
TA_RESTART Y
TA_CLOPT -A -t -- /opt/app/config
TA_MIN 1
TA_MAX 1
Run:
ud.sh ud.ubb
It returns:
v490h4-tux-t:/opt/app/src/config$ ud.sh ud.ubb
CMDTUX_CAT:988: ERROR: ud detected syntax error in fielded buffer #1
LIBFML_CAT:8: ERROR: Unknown field name
CMDTUX_CAT:988: ERROR: ud detected syntax error in fielded buffer #2
LIBFML_CAT:10: ERROR: Bad syntax in boolean expression
TA_CLASS T_SERVER
TA_OPERATION SET
CMDTUX_CAT:989: ERROR: No service in FBFR
TA_MAX 1
TA_MAXGEN 200
TA_MIN 1
TA_SRVID 10100
TA_STATE NEW
TA_CLOPT -A -t -- /opt/app/config
TA_REPLYQ Y
TA_RESTART Y
TA_SERVERNAME load
My .profile file:
export TUXDIR=/opt/app/tuxapp/TUX91/tuxedo9.1;
export TUXCONFIG=/opt/app/airopen/config/tuxconfig;
export TUXLIB=/opt/app/tuxapp/TUX91/tuxedo9.1/bin;
export TUXINC=/opt/app/tuxapp/TUX91/tuxedo9.1/include;
export PATH=.:/opt/SUNWspro/binTUXDIR/bin
export FIELDTBLS32=bank_fml,rtpnr_fml,common_fml,ui_fml,openpnr.fml32,open_detr_fml,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/tpadm,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/Usysfl32:/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/Usysflds;
export VIEWDIR=/opt/app/airopen/view;
export VIEWDIR32=/opt/app/airopen/view32;
export LD_LIBRARY_PATH=$TUXDIR/lib;
...
Could someone explain it?
Thanks a lot.
--友情转载