I am working on an application that will get files on a server via SFTP, using JSch.
There isn’t much documentation, but I found this (french) blog post: Un client SSH pour Java.
I just can figure out what the TERMINATOR variable is for:
private static final String TERMINATOR = "zDonez";
Why does this use "zDonez"?
“zDonez” is an arbitrary string that won’t appear in the output of any of the commands you run. If it does, you need to select another value for TERMINATOR.
The purpose of it is to detect when a command has finished running.