-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could use jcabi-ssh to scp files? #7
Comments
Good question. This is how I would do it:
|
ok, thank you. |
Could this example be explained in more detail? I don't really see what's going here. Also I want to scp a byte array that is currently stored in memory would that be possible? |
A little bit old, but here is the explanation. cat > %s command will read input from stdin and save it in the file %s (that will be replaced by the real file name, stored in file_name). The stdin is streamed in from the created FileInputStream(file). |
Also effective:
This has the advantage that you can prepend |
Could use jcabi-ssh to scp files? if yes, please give some example code, thank you.
The text was updated successfully, but these errors were encountered: