CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2011
    Posts
    1

    do scp from my java application

    Hi,

    I don't know if I in the right place, but I didn't find other forum.

    I tried to use the method: Runtime.getRuntime().exec("scp -i the path of my publickey on the remote server usernameOnTheRemoteServer@remoteIPath of the file that I want to copy myComputerPath)

    and I got exception: Cannot run program "scp": CreateProcess error=2, The system cannot find the file specified

    can someone help me??

    thnx.

  2. #2
    Join Date
    Feb 2008
    Posts
    966

    Re: do scp from my java application

    This sounds like a UNIX/LINUX problem and not a Java one. Have you tried to run the exact command in the quotes at the command line?

    If that 'does' work, have you checked to ensure that the Java application has permissions (whatever account it is running under) to the folder/file specified?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured