in reply to Re^2: FR Config Sanity Checking
in thread FR Config Sanity Checking
If your ssh setup is working properly, this should return the value you need from the remote server. You might then keep a comparison table locally so if you determine the file was edited by someone other than your script you could then act accordingly..#!/usr/bin/perl -w use strict; my $remotefile = '/tmp/yourfile.conf'; my $remotestat = qx! ssh -2 -p 12345 172.16.16.82 'perl -e "print ((stat(qq~$remotef +ile~))[9])" ' !; print "\n$remotestat \n"; print "\n", scalar localtime($remotestat), "\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: FR Config Sanity Checking
by amt (Monk) on Oct 05, 2004 at 02:40 UTC |