Hi All,
Here is my part of script: Script: @replicas=`cleartool lsreplica -s`; foreach $rep (1..$#replicas) {#print "$replicas[$rep] \n"; print " $rep= $replicas[$rep] \n"; } print "For which replica do you like to SYNC\n"; print "Make you choice\n"; my $choice=<>; chomp$choice; When i execute this i get an output as follows: 1= BLR_ComEPR_ADT_Backup 2= GBG_ComEPR_ADT2 3= MAL_ComEPR_ADT2 4= For which replica do you like to SYNC Make you choice 4 Now my question if i say my choice is 4 , it should select MAL2_ComEPR_ADT. so that i can do my further activity, how should i do that.? Eg `mt sync replica MAL2_ComEPR_ADT` Regards j@veed SIEMENS Bangalore, India. Tel: (Off) +91-80-8521122 Extn: 4919 (Dir) +91-80-8091919 Fax: +91-80-8521337