Using filetransferΒΆ
usage:
filetransfer [-v | -vv] [-c CONFIG] JOBID
filetransfer -k [-H] [-p PORT] HOST FILE
filetransfer -d [-p PORT] HOST FILE
filetransfer -h | -V
JOBID the job id
HOST server name or IP
FILE known-hosts file
-c, --config CONFIG the application configuration file
If not given the value of the environment
variable FILETRANSFER_CFG will be used.
-d, --delete delete server hostkey from known-hosts file
-H, --hash hash hostnames
-k, --hostkey get hostkey from SFTP server
-p, --port PORT SFTP server port [default: 22]
-v, --verbose once: print message
twice: print stack trace
-h, --help show this help
-V, --version show the version
return codes:
0 success
1 with errors
2 failure
3 config error
4 cmd line syntax error
5 terminated
To start a job the JOBID (which is the job configuration filename without the extension) must be given on the commandline. When starting multiple jobs e.g. from a crontab the environment variable FILETRANSFER_CFG can be set to the path of the application configuration file so that it can be omitted on the commandline of each job.
It is also possible to get hostkeys from SFTP servers and save them to or delete them from the known-hosts file.
See also