On Tue, Feb 21, 2012 at 16:38, Tomer Filiba <[email protected]> wrote:

> to get a remote os.stat, just create a connection to the remote machine
> and use the remote machine's os.stat:
>
> c = rpyc.classic.connect("myserver")
>
> while True:
>     statres = c.modules.os.stat("/some/file/on/myserver.txt")
>     if statres.st_mtime < time.time() - 15*60:
>         send_email()
>     time.sleep(5*60)
>

You should use the remote machine's 'time' module as well!

Reply via email to