telegraf: Cannot escaping backslash, spaces, special chars in exec input on Windows
I just setup my telegraf.conf who run a powershell script with a path as an argument. Problem is : My argument can be a network path, and it seems like there are no way to use backslash with the exec input. commands = [‘powershell ./parse_send_csv.ps1 “\blabla\a”’]
Using \\ results to having 2 backslash : Not working
Using only one \ results to no backslash : Not working
Using single or double quote or both : Not working
I even tried to escape with character (escaping character in golang) with no success.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (7 by maintainers)
@amitkumar912 I think this issue will need to be fixed before you will be able to get the globs to work in Windows. It isn’t related to those other issues.
I recommend listing the scripts one at a time, as I’d be somewhat uneasy with the idea of executing based on a glob personally.