> I set up my pub rsa id and all that stuff. > > My problem is here: > I have a batch file which logs itself. The batch file contains some logging commands and > rsync -avze ssh [EMAIL PROTECTED]:/directory/. /local_dir > > This command is executed fine at the command prompt. (Doesnt ask for password or passphrase as it is all setup.) > > when I execute this batch file thorugh the Win2K Task scheduler all the other commands in the batch file are > executed except the above command. Dont know why.
Most likely the problem is that the Task Scheduler is executing your batch file under a different user context than the one in which you are executing it from the command line. Remember that cygwin's openssh looks for public keys under the user profile for whichever user context is currently relevant - so if for instance Task Scheduler is operating as LocalSystem and you published your SSH keys as Administrator, you will have no joy in your automated SSH task. Hope that helped. Jim Salter JRS Systems -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html