Saved has asked for the wisdom of the Perl Monks concerning the following question:
I would like to get the TimeStamp of a file on a remote system to deside if I need to pull it. What I tried in perl script
@Time= qx/ssh $Uat "\/usr\/bin\/perl -e '$MTIME = ( stat ( Envs_${Uat +}.xml ))[9];print $MTIME;'/";
I also tried from the bash command line...
ssh ifcaa1 BOB=`perl -e '$TIME=time(); print $TIME;'`;echo $BOBJust to get something simple working... not root & "Net::SSH" not an option. All Help much appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get remote file TimeStamp
by Eliya (Vicar) on Feb 28, 2012 at 18:11 UTC | |
by Saved (Beadle) on Feb 28, 2012 at 18:17 UTC | |
by Saved (Beadle) on Feb 29, 2012 at 17:22 UTC | |
by Eliya (Vicar) on Feb 29, 2012 at 18:10 UTC | |
by Saved (Beadle) on Mar 01, 2012 at 11:21 UTC | |
by Eliya (Vicar) on Mar 01, 2012 at 12:49 UTC | |
| |
|
Re: Get remote file TimeStamp
by JavaFan (Canon) on Feb 28, 2012 at 19:11 UTC | |
|
Re: Get remote file TimeStamp
by runrig (Abbot) on Feb 29, 2012 at 19:56 UTC | |
|
Re: Get remote file TimeStamp
by salva (Canon) on Feb 29, 2012 at 19:56 UTC |