find: incomplete statement #### Argument for -c ends in backslash. #### # in my actual code, I had "rm" instead of "ls -l", but I figured this would be safer in an example. system "/usr/local/bin/ssh $remote \"find $base_dir -mtime +$days -exec ls -l \\{} \\;\"" and warn "system: ssh: $!";