0
CFEXECUTE
New Here
,
/t5/coldfusion-discussions/cfexecute/td-p/97046
Sep 05, 2008
Sep 05, 2008
Copy link to clipboard
Copied
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
<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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/coldfusion-discussions/cfexecute/m-p/97047#M9544
Sep 05, 2008
Sep 05, 2008
Copy link to clipboard
Copied
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.
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

