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
In reply to Get remote file TimeStamp by Saved
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |