Skip to content
linscpSecure file transfer for Linux and Windows
GitHub

commands

option

Show or change the script options.

Generated from linscp 0.6.1
option [<name> [<value>]]

With no argument, option prints every script option and its current value. With a name, it prints that one. With a name and a value, it sets the option and prints the result.

Some options start from your linscp preferences. Changing them here lasts only until linscp-cli exits and never touches the saved configuration. The options are described below.

on | off

With on, linscp-cli prints each command before it runs it. This helps when you read the output of a long script. The default is off.

on | off | abort | continue

Controls what happens when a command needs an answer or fails.

  • off (default): linscp-cli asks you.
  • on: every question gets a negative answer, so the script never waits. Combine it with option confirm off, or existing files are not overwritten.
  • abort: questions are answered as with on, and the first error stops the script with exit code 1.
  • continue: errors are reported and the script goes on.

Choosing any batch mode also limits reconnecttime to 120 seconds if it was off.

on | off

With on (default), get and put ask before they overwrite an existing file. Set it to off in scripts that should replace files without asking.

off | <seconds>

How long linscp-cli keeps trying to restore a dropped connection during a transfer or synchronization before it reports an error. off (default) means no limit.

on | off

Decides whether a mask that matches nothing is an error. With off (default), the command prints a message and the script continues. With on, the command fails, which stops a script running in batch abort mode. It applies to get, put, rm, mv, cp, chmod, ls and lls.

The usual start of an unattended script.

Terminal window
option batch abort
option confirm off