• Font Size
  • S
  • M
  • L

Search via FAQ No.


  • No : 30691
  • Open Date : 2019/09/02 14:44
  • Print
NEW

[DataSpider Servista] I want to execute a process that would specify multiple files as monitoring targets and read and convert the contents, etc.

Can I specify the multiple files as monitoring targets, and perform a process that would so such as reading and converting the contents of each file?
Category : 

Answer

  • How to monitor multiple files
For the file trigger, you can use wildcards ("*") to monitor multiple files.
 
For example, if you want to monitor all files that are created under "/ data / filetrigger /", please specify as follows:
 
/data/filetrigger/*
 
When the multiple files are created in the target directory after specifying as above, it executes the script that is specified in the file trigger for each created file.
  • How to get the file information that triggered the file trigger
When you want to specify the created file in the script that is started by file trigger, please use the trigger variable of the file trigger.
 
You can get the file name of the file that triggered it with "trigger.filename".  Also, you can get the file path of the file that triggered it with "trigger.filepath".
 
In order to pass the value to the script, after setting the script input variable in the script specified in the file trigger, please set the above trigger variable in the script input variable at the "script argument" of the "execution content settings" screen of the file trigger.
 
Please refer to the help of reference about the trigger variable of the file trigger.
 
 
Reference Information
  • File trigger
 
file_image