# Curator in a bash script

**URL:** https://discuss.elastic.co/t/curator-in-a-bash-script/136102
**Category:** Elasticsearch
**Created:** [June 15, 2018, 1:45pm UTC](https://discuss.elastic.co/t/curator-in-a-bash-script/136102 "2018-06-15T13:45:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ben96](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben96/32/28334_2.png) [@Ben96](https://discuss.elastic.co/u/Ben96)
#### Post date: [June 15, 2018, 1:45pm UTC](https://discuss.elastic.co/t/curator-in-a-bash-script/136102/1 "2018-06-15T13:45:01Z")

</div>

Hello everyone,

Coming here today because i'm facing a problem with curator in a bash script to execute multiple action file.

Here body's script :

> PATH\_CONFIG="/applis/curator/config/curator-integration.yml"  
> PATH\_ACTION="/applis/curator/actions/param\_actions\_2.lst"  
> PATH\_INDEX="/applis/curator/index"
> 
> FILE=($(cat $PATH\_ACTION))
> 
> for i in "${FILE[@]}";  
> do  
> /opt/elasticsearch-curator/curator "--config" $PATH\_CONFIG $i  
> done

Curator error returned :

Usage: curator [OPTIONS] ACTION\_FILE

" does not exist.lue for "action\_file": Path "/applis/curator/index/coveauth/mensuel/maaf-coveauth-index-close.yml  
Usage: curator [OPTIONS] ACTION\_FILE

> " does not exist.lue for "action\_file": Path "/applis/curator/index/coveauth/mensuel/maaf-coveauth-index-delete.yml  
> Usage: curator [OPTIONS] ACTION\_FILE
> 
> " does not exist.lue for "action\_file": Path "/applis/curator/index/reseau/journalier/maaf-bluecoat-index-close.yml  
> Usage: curator [OPTIONS] ACTION\_FILE
> 
> " does not exist.lue for "action\_file": Path "/applis/curator/index/reseau/journalier/maaf-bluecoat-index-delete.yml

Any of my files/files path are good, right on them are good too, if i replace all vars by path, it work.. so i'm in trouble and i don't know how to solve this.

I'm open to any suggestion if someone encountered this kind of errors..

Thanks in advance for reading.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 13, 2018, 1:45pm UTC](https://discuss.elastic.co/t/curator-in-a-bash-script/136102/2 "2018-07-13T13:45:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
