#!/bin/sh #tcrmgr list -port 11215 10.11.157.49 >datakey.txt #awk '$1 ~/^[CMS_CACHE|CMS_OBJ]/' datakey.txt >cacheAndObj.txt #split -l 100000 cacheAndObj.txt keys/cache. ############for a in `tcrmgr list -port 11210 -fm CMS_CACHE 10.11.157.53` for a in $(ls /opt/ttserver/test/keys) do ## tcrmgr out -port 11215 10.11.157.49 "$a" # sh /opt/ttserver/test/rmOneCache.sh $a & done wait
#!/bin/sh #filename="cache.aa" filename="$1" for a in `cat /opt/ttserver/test/keys/$filename` do tcrmgr out -port 11215 10.11.157.49 "$a" done echo "$1----$0 exiting"