Hi,

I am trying to find a file on the remote machine using glob.glob, but it 
doesn't do that on the remote machine. 
Do I need to install python 2.6 on the remote machine?
What am I missing here? Thanks.

Here's the fabfile:

import glob, os, time, sys
env.hosts = ['[email protected]']
....
def copy_latest_model():
    last_mod_file = ""
    for file in glob.glob("/var/lib/mysql-backup/*"):
        if (file > last_mod_file):
            last_mod_file = file
    print last_mod_file,"is the last modified."


_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to