Guest_imported
New member
- Jan 1, 1970
- 0
I have a problem today with a simple shell script. Can any one help me to sort this out.
I am checking the last file on the remote machine then find files on the local machine that have been modified recently than files on the remote machine.
My command was
$ LAST=” `rsh REMOTEHOST ls –t /REMOTEDIRECTORY | head –1` ”
$ find . –newer $LAST –type f –print
I get an error message for this.
CANNOT ACCESS $LAST
I am checking the last file on the remote machine then find files on the local machine that have been modified recently than files on the remote machine.
My command was
$ LAST=” `rsh REMOTEHOST ls –t /REMOTEDIRECTORY | head –1` ”
$ find . –newer $LAST –type f –print
I get an error message for this.
CANNOT ACCESS $LAST