File Watcher
Start, list, check and stop file watchers, services that react when files change in a folder. Typical uses: process a file as soon as a partner drops it in a folder.
file_watcher startfile_watcher killfile_watcher existfile_watcher show

file_watcher start <key> <user> <directory> <scriptName>


Description

    To start a file watcher

Parameters

    key:   The key - String - required
    user:   The user - String - required
    directory:   The directory to scan - String - required
    scriptName:   The script name - String - required
admin
file_watcher start "fKey" "admin" "/Users/jimmitry/Desktop/dir" "demo.file.watcher.exe";
mentdb
1
Used in use cases (12 recipes)

    Event developer › Run a script when a file arrives in a folder
    File transfer & remote systems engineer › Watch a drop folder, push files over SSH and notify the head office
    Automation architect › Nightly import with a cron, a file watcher and a flow
    Event developer › Inspect the file watchers of the server
    Event developer › The watcher validates, a heavy loader runs later in the stack
    Event developer › The three events of a file: create, modify, delete
    and 6 more in the Use cases
Often used with

    file_watcher kill  ·  script create  ·  file delete  ·  file mkdir  ·  script delete  ·  and  ·  file create  ·  stack delete_closed_script

file_watcher kill <key>


Description

    To kill a file watcher

Parameters

    key:   The key - String - required
admin
file_watcher kill "fKey";
mentdb
1
Used in use cases (11 recipes)

    Event developer › Run a script when a file arrives in a folder
    File transfer & remote systems engineer › Watch a drop folder, push files over SSH and notify the head office
    Event developer › Inspect the file watchers of the server
    Event developer › The watcher validates, a heavy loader runs later in the stack
    Event developer › The three events of a file: create, modify, delete
    Event developer › Process a CSV on arrival and archive it
    and 5 more in the Use cases
Often used with

    file_watcher start  ·  file delete  ·  file mkdir  ·  script create  ·  script delete  ·  and  ·  file create  ·  stack delete_closed_script

file_watcher exist <key>


Description

    To check if a file watcher already exists

Parameters

    key:   The key - String - required
admin
file_watcher exist "fKey1"
mentdb
1
Used in use cases (5 recipes)

    Event developer › Run a script when a file arrives in a folder
    File transfer & remote systems engineer › Watch a drop folder, push files over SSH and notify the head office
    Automation architect › Nightly import with a cron, a file watcher and a flow
    Event developer › Inspect the file watchers of the server
    Event developer › Restart a watcher safely
Often used with

    file_watcher start  ·  file_watcher kill  ·  script create  ·  file delete  ·  file mkdir  ·  file_watcher show  ·  script delete  ·  and

file_watcher show


Description

    To show all file watchers

admin
file_watcher show;
mentdb
[]
Used in use cases (3 recipes)

    Event developer › Inspect the file watchers of the server
    File transfer & remote systems engineer › Watch a drop folder, push files over SSH and notify the head office
    Event developer › Restart a watcher safely
Often used with

    file_watcher exist  ·  file_watcher kill  ·  file_watcher start  ·  file delete  ·  file mkdir  ·  script create  ·  script delete  ·  cm get