All the elephants in the lines jumped up as if they had been shot , and their grunts at last waked the sleeping mahouts , and they came out and drove in the picket pegs with big mallets , and tightened this rope and knotted that till all was quiet .