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 = ['us...@12.16.222.222'] .... 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 Fab-user@nongnu.org http://lists.nongnu.org/mailman/listinfo/fab-user