At line 3 changed one line |
A leading "L" character instructs the client to apply the command to the local client versus to the remote client. lls would sit your current local folder, lcd changes the local folder. Only the file transfer commands do not have an "L" version. (put, get, diffput, diffget) If a path being references has a space in it, the path must be quoted. Example: put "some file.txt" "/some folder/my file.txt". Backslash quote escaping is permitted as well. The "local" client doesn't need to be local at all though, both clients can be remote and files can be streamed through the CrushClient. |
A leading "L" character instructs the client to apply the command to the local client versus to the remote client. lls would sit your current local folder, lcd changes the local folder. Only the file transfer commands do not have an "L" version. (put, get, diffput, diffget) If a path being referenced has a space in it, the path must be quoted. Example: put "some file.txt" "/some folder/my file.txt". Backslash quote escaping is permitted as well. The "local" client doesn't need to be local at all though, both clients can be remote and files can be streamed through the CrushClient. Commands can be sent into he background with a "&" at the end of them. Example: |
{{{ |
put file.txt remote.txt& |
}}} |
At line 6 changed one line |
Different ways to start CrushClient. If started with a script, no input will be taken, all input will be read line by line from the script as if you were physically typing it. Don't forget the quit command at the end or the client will wait indefinitely for more input... A script is typically ended with two lines. wait, then quit. |
There are different ways to start CrushClient. If started with a script, no input will be taken, all input will be read line by line from the script as if you were physically typing it. Don't forget the quit command at the end or the client will wait indefinitely for more input... A script is typically ended with two lines. wait, then quit. |
At line 15 added one line |
java -jar CrushTunnel.jar inline_script "connect https://demo:demo@crushftp.com/demo/;put file.txt;wait;quit;" |
At line 19 added 3 lines |
---- |
!!Commands |
|
At line 74 changed one line |
Waits for active transfers to complete with the local or remote client and prints occasional statistics about in-progress transfers. |
Lists the segments that are different between the two files. |
At line 76 changed 2 lines |
wait |
lwait |
diff local/path remote/path |
At line 80 changed one line |
Pauses CrushClient for the specific milliseconds to impose delays in command processing. |
Changes the current working directory for the local or remote client. |
At line 82 changed one line |
delay {milli seconds} |
cd |
cwd |
lcd |
lcwd |
At line 85 changed one line |
Prints stats about current in progress transfers one time. |
Prints the current working directory for the local or remote client. |
At line 87 changed 2 lines |
info |
linfo |
pwd |
lpwd |
At line 91 changed one line |
Aborts all in progress transfers. |
Creates a new folder. |
At line 93 changed one line |
abor |
mkd /remote/path |
lmkd /local/path |
At line 106 added 25 lines |
Renames an item, both must be specified in the command for source and destination. |
{{{ |
rename /remote/path1 /remote/path2 |
mv /remote/path1 /remote/path2 |
lrename /local/path1 /local/path2 |
lmv /local/path1 /local/path2 |
}}} |
---- |
Toggles the use of FTP passive mode. |
{{{ |
pasv |
lpasv |
---- |
The anything section is passed to the remote FTP server directly. |
{{{ |
quote anything |
lquote anything |
}}} |
---- |
Sets the modified date to the specified time. |
{{{ |
mdtm /remote/path yyyyMMddHHmmss |
lmdtm /local/path yyyyMMddHHmmss |
}}} |
---- |
At line 101 changed one line |
Lists the segments that are different between the two files. |
Sets a configuration parameter on the client. Undocumented for now, use the UI in CrushFTP to setup a config on a connection item and then view the raw XML for the config param it configured. |
At line 103 changed one line |
diff local/path remote/path |
config param value |
lconfig param value |
At line 107 changed one line |
Example: set download_threads 10 |
Example: set max_threads 10 |
At line 121 changed one line |
Toggles the use of FTP passive mode. |
Queues up commands in a list so they can later on be executed. Built a list of file transfers to do in a queue, then run it with the execute command. Useful for scripting load to the server. |
At line 123 changed one line |
pasv |
queue {id} add command |
queue {id} reset |
queue {id} run |
At line 126 changed one line |
Changes the current working directory for the local or remote client. |
Waits for active transfers to complete with the local or remote client and prints occasional statistics about in-progress transfers. |
At line 128 changed 4 lines |
cd |
cwd |
lcd |
lcwd |
wait |
lwait |
At line 134 changed one line |
Prints the current working directory for the local or remote client. |
Pauses CrushClient for the specific milliseconds to impose delays in command processing. |
At line 136 changed 2 lines |
pwd |
lpwd |
delay {milli seconds} |
At line 140 changed one line |
Creates a new folder. |
Prints stats about current in progress transfers one time. |
At line 142 changed 2 lines |
mkd /remote/path |
lmkd /local/path |
info [all/clear] |
linfo [all/clear] |
At line 146 changed one line |
Renames an item, both must be specified in the command for source and destination. |
Aborts all in progress transfers. |
At line 148 changed 4 lines |
rename /remote/path1 /remote/path2 |
mv /remote/path1 /remote/path2 |
lrename /local/path1 /local/path2 |
lmv /local/path1 /local/path2 |
abor |
At line 154 changed one line |
The anything section is passed to the remote server directly. Applies only to FTP connections. |
Kill app after pre-determined time amount with an error code exit. |
At line 156 changed 2 lines |
quote anything |
lquote anything |
kill 30 secs |
kill 30 s |
kill 1 min |
kill 1 m |
kill 100 hours |
kill 100 h |
kill 2 days |
kill 2 d |
kill 0 s (aborts kill) |
At line 160 changed one line |
Sets the modified date to the specified time. |
Timeout on individual file transfer items FTP, HTTP(s), SFTP in seconds. |
At line 162 changed 2 lines |
mdcm /remote/path yyyyMMddHHmmss |
lmdtm /local/path yyyyMMddHHmmss |
timeout 30 |
At line 166 changed one line |
Sets a configuration parameter on the client. Undocumented for now, use the UI in CrushFTP to setup a config on a connection item and then view the raw XML for the config param it configured. |
Start a tunnel with a server so you can connect through it. After starting you can connect through the tunnels port. Typically its 55555. |
At line 168 changed 2 lines |
config param value |
lconfig param value |
tunnel https://www.crushftp.com/ (you will be prompted for credentials) |
tunnel https://demo:demo@www.crushftp.com/ (credentials provided inline in the URL) |
tunnel list (list running and stopped tunnels) |
tunnel stop {id} (stop a tunnel id you got from the list command, ids start at 1 and count up for each tunnel you create. Once stopped, a tunnel id can't be started.) |
tunnel log (prints out the recent tunnel log messages) |
|
connect http://127.0.0.1:55555/ (now you can connect normally through the tunnel that was just started) |
At line 172 changed one line |
Queues up commands in a list so they can later on be executed. Built a list of file transfers to do in a queue, then run it with the execute command. Useful for scripting load to the server. |
Take a thread stack trace for what all CrushClient is currently working on (debug purposes only) |
At line 174 changed 3 lines |
queue {id} add command |
queue {id} reset |
queue {id} run |
dumpstack |
At line 220 added 4 lines |
Take a memory dump of the CrushClient (debug purposes only) |
{{{ |
dumpmemory |
}}} |