#!/usr/bin/perl -W use strict; # # This script implements the last-mile communication with the storage RM. # The commands currently specified are: # # command: stagetime # returns: [, 0.0 ? ($filesize / $transferrate) + .5 : "-1"); print $stagetime; print ",$filesize" if $filesize; # Exit and set error code to success. exit 0; } # Exit and set error code to unrecognized command. exit 2;