Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFEXECUTE

New Here ,
Sep 05, 2008 Sep 05, 2008
I am trying to execute a secure copy scp within a CFEXECUTE:
<CFEXECUTE NAME="D:\test\scp"
ARGUMENTS=" -pw mypass D:\test\myfile myusrname@remoteIP:remotefilename"
OUTPUTFILE="D:\test\myout.txt">

This is running Windows 2000 professional and CF 5.

I can run the scp program from a COMMAND Window fine. It puts the authentication in the Windows Registry the first time, and never asks again. For some reason when I call a CF template with the above code, it does not look in the Registry, but always tries to confirm the legitimacy of the remote computer. It hangs as a result.

I am ultimately trying to push files from the server, that have been selected by a browser, to trusted remote computers using a secure protocol.

Any help would sure be appreciated!

Joel
TOPICS
Advanced techniques
405
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 05, 2008 Sep 05, 2008
LATEST
I can run the scp program from a COMMAND Window fine.

The process is then running on your machine, within your security context.

...when I call a CF template with the above code...

Then the process will start running on a remote computer, hence the remote computer's need for authentication.

Couldn't you use the cfcontent tag? It's much simpler for a start.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources