Hello all:
I'm collecting our department's little monitoring scripts that do various "watching" of Solaris, OSX, and Linux server directories to make sure that files fed into said directories are moving through (ie: dropping in and being moved out) via other automated processes.
We have a nifty clustered "watch" server that monitors this sort of thing... my problem is that I can verify that the remote directory to be watched exists, can even return an array populated by the remote directory listing but I'm doing really bad things to try and get a "stat()" of each of the files to compare file mtime to my system time...
...
$FileTime = `ssh $ServerName 'perl -e '(stat($FP_RemoteFile))[9];''`;
$FileTime, then should contain the mtime value from the stat array... that is if it actually worked without
returning syntax errors like "sh: syntax error at line 1: `(' unexpected"...
Anyone know how best to gather the mtime from a remote file using an ssh call in a perl script?
Thanks!
baerlun