that cp command is executed on the remote system, so it will copy your log.cap file to /export/home on the remote system. is that what you want to do?