[Tutor] Better way to check *nix remote file age?

Leam Hall leamhall at gmail.com
Sat Jun 28 00:20:47 CEST 2014


On 06/27/14 17:40, Walter Prins wrote:
> Hi,
>
> On 26 June 2014 18:01, leam hall <leamhall at gmail.com> wrote:
>> On Thu, Jun 26, 2014 at 12:41 PM, Walter Prins <wprins at gmail.com> wrote:
>>> On 26 June 2014 14:39, leam hall <leamhall at gmail.com> wrote:
>>>> Python 2.4.3
>>>> Is there a better way to do this?
>>> I'd probably rather try Paramiko's SFTPClient and retrieve the file
>> Seem to not work on Python 2.4.3.
>
> What exactly did you try, and what error/output did you get?  (I've
> had another look at Paramiko's homepage and it seems to support back
> to Python 2.2? [http://www.lag.net/paramiko/ ])
>
> Walter

Walter, I was cranky. Sorry.

When I looked at ( http://www.paramiko.org ) it specified Python 2.6+ 
and 3.3+. That's echoed in the README ( 
https://github.com/paramiko/paramiko/blob/master/README ) I have not 
actually tested to see what breaks on a 2.4 box.

The other option was to copy in the files and stat them. Trying to build 
a script that can be extended and not hit so much network bandwidth. The 
good thing about the way this is currently going is that a co-worker 
gave me a better Solaris solution that let me standardize the script for 
both Red Hat Linux and Solaris. Still need to figure out AIX.

The possibility exists to build a python outside of the standard. The 
issue is supportability. Like many others I'm a contractor and need to 
make sure whatever I do is so boringly simple that I can train my 
replacement. On one hand, that's a good thing. If people use my scripts 
after I'm gone then hopefully they won't cuss too much.

Since my exciting plans for the weekend have been canned I'll take a 
little time and think about how best to do this. Some of it is "what 
should I do with my career" type thinking. Some is just "hey, how does 
this work?".

Thanks for not responding as poorly as I did.

Leam

-- 
http://31challenge.net
http://31challenge.net/insight


More information about the Tutor mailing list