Command line options

Top  Previous  Next

The following options may be used at the command line when invoking File Transfer Command Line.

 

-h <hostname>

Specified the hostname of the remote server.

 

<hostname>

 

a valid hostname or IP address

 

Example

 

-h 192.168.10.2

-u <username>

Specifies the username to use when logging into the remote server.

 

<username>

 

a valid username on remote server

 

Example

 

-u jsmith

-p <password>

Specifies the password to use when logging into the remote server.

 

<password>

 

a valid password for specified username on remote server

 

Example

 

-p secret

-s <boolean>

Specifies that a secure SFTP/SSH connection be used. Telnet connection is used by default. Requires that SSH version 2.0 or above be installed on remote server and SFTP be enabled.

 

<boolean>

 

true, false

 

Example

 

-s true

-l <file>

Specifies the path of the log file to write debugging information to. By default all debugging information is sent to the console.

 

<file>

 

a valid relative or absolute path on local machine

 

Example

 

-l log.txt

-k <file>

Specifies the path of the private key file to use when authenticating with SSH server. Valid for use in SSH connections only.

 

<file>

 

a valid relative or absolute path on local machine

 

Example

 

-k c:/ssh/keys/id_dsa

-d <boolean>

Specifies whether debugging is enabled or disabled. By default debugging is enabled and all debugging information is sent to the console.

 

<boolean>

 

true, false

 

Example

 

-d false

-t <seconds>

Sets the maximum timeout used when establishing a connection, sending data or receiving data. If timeout is exceeded script will abort. Default value is 60 seconds.

 

<seconds>

 

the maximum number of seconds to wait

 

Example

 

-t 30

-z <port>

Specifies the port of the remote server. The default ports for FTP and SFTP protocols are 21 and 22 respectively.

 

<port>

 

A valid integer between 1-65535

 

Example

 

-z 2021

 

 

 

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC