- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
nifi executeprocess special characters *
- Labels:
-
Apache NiFi
Created on ‎10-16-2020 06:57 AM - edited ‎10-16-2020 07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, im having trouble running an execute script with an * in a property.
First of all i need to run a script to move files between folders, because the putfile processor creates a hidden file before moving it to the final filename, this is a requierement for me since everything i put in the destination directory gets picked-upped by another program that has no filename filter.
Problem: running ExecuteProcess version 1.11.4 with the following config gives erros.
Command: /bin/mv
Command Arguments: /tmp/test/* /temp/test2/
The following error seems to be that im not escaping the * character.
Im using the * because that moves all the files omitting the hidden ones.
2020-10-16 11:05:20,857 WARN [ExecuteProcess 017411cc-ca25-1489-15c6-f3edfccdf984 Task] o.a.n.processors.standard.ExecuteProcess ExecuteProcess[id=017411cc-ca25-1489-15c6-f3edfccdf984] /bin/mv: cannot stat '/tmp/test/*': No such file or directory
Solution for now is running a bash script with the contents "mv $1 $2"
Created ‎10-19-2020 08:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
could this be a bug in that nifi cant process the * character in a property?
