Re: PSCP does not copy when running as at-job

From: Simon Tatham (anakin_at_pobox.com)
Date: 10/25/04


Date: 25 Oct 2004 11:24:34 +0100 (BST)

Wolfgang Wagner <ww.usenet@riwa.gis.de> wrote:
> It seems, if PSCP is running as at-job , it does not transmit
> authentication information to the server.
>
> Why?

Can you get at the output PSCP printed, to see if it tried to tell
you anything important?

My first guess would be that PSCP is giving some sort of prompt -
probably the one about host keys. Is your at-job accessing the same
HKEY_CURRENT_USER as your interactive jobs? If not, then the host
key cache won't already contain the correct key, and PSCP will ask
the user to confirm it, which of course an automated job doesn't
have. If this is the case, then the output of the at-job ought to
contain a large message explaining what PSCP is after.

If so, then the solution is to add the correct host key to the right
part of the Registry. You might also want to add the `-batch' flag
to PSCP's command line, which will ensure that it aborts immediately
in case of trouble rather than attempting to get interactive
responses from a non-existent user.

-- 
Simon Tatham         "What a caterpillar calls the end of the
<anakin@pobox.com>    world, a human calls a butterfly."