Hi
I'm familiar with *find /xxxx -type f -atime +14 -exec rm -f {} \;*
however I'm trying to get it to work in an ftp session as follows:
#!/bin/sh
HOST='xxx'
USER='yyy'
PASSWD='zzz'
ftp -i -n -v $HOST <<END_SCRIPT
!find /xxxx -type f -atime +14 "-exec rm -f {}" ;
quit
END_SCRIPT
exit 0
The ftp session stuff works fine, I've used it lots of times - the *find* part doesn't. Currently I get this: *invalid predicate '-exec rm -f {}'*
Can anyone tell if this is even possible? I've searched high and lo, tried a million variations, with no luck.
Any help gratefully rxed.
thanks