. . "o the party moving, make an order ex parte upon such terms as to costs or otherwise and subject to such undertakings, if any, as the justice of the case demands. 2." . .