<< back

  1. Description

  2. Usage

  3. Parameters

  4. Send several reports

Description

send is used to copy Teuton reports into remote machines.

Usage

start do
  export
  send :copy_to => :host1
end

Example

Example 1: send case-01-txt file to remote Windows host.

Example 2: send report file to remote “./Desktop” folder.

Parameters

| Action | Description | | —— | ———– | | send :copy_to => :host1, :remote_dir => "/home/david" | Reports will be saved into “/home/david” directory in remote machine host1. | | send :copy_to => :host1, :prefix => "samba_" | Case report will be save into temp directory on every host host1, named as samba_case-XX.txt. |

Teuton version 2.0.x * By default, send only works when remote OS type is UNIX base, like GNU/Linux, MACOS, BSD, etc. * For Windows OS we must specified :remote_dir. Example: send :copy_to => :host1, :remote_dir => "C:\". This example will copy files on directory c:\ of host1 machine.

Send several reports

If you export several files using differents output formats, you will use several export orders. Then when invoke send order, this will send the last exported file.

In this example we export json and txt files, but only send txt to remote hosts:

start do
  export :format => :json
  export :format => :txt

  send :copy_to => :host1
end

If you want to send every exported output file, then do like this:

start do
  export :format => :json
  send :copy_to => :host1

  export :format => :txt
  send :copy_to => :host1
end