Calculate the time difference between a local file and a remote file.

I m stuck with a issue.

I need to calculate the time difference between two files.. one on the local machine and one on the remote machine using a script.

Can any one suggest the way this can be achevied

Thanks,
manohar

One way would be to use rsh (remsh on HP-UX) to login onto the remote host and get the information using ls or stat.

Another way, which is the way I prefer for security reasons, would be to write a small RPC program in C (or some other language) to access the remote host and return the required information.