You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See this line. Forcing the sensu-client to have a file with the body when using -b argument is limiting. I would prefer the server to be able to send the body as a string argument. I've tried to hack around this by using the <(..) bash statement in order to create an on-the-fly file descriptor and pass it as the body argument instead:
This however doesn't work, since sensu-client is using /bin/sh and not /bin/bash (I think), thus the <(..) statement returns a sh: 1: Syntax error: "(" unexpected.
It would've been a lot easier (and simpler) if the body could be passed as a string argument instead of a file. You can easily stay backward compatible by using:
check-http-json.rb -b `cat body.txt`
The text was updated successfully, but these errors were encountered:
See this line. Forcing the sensu-client to have a file with the body when using
-b
argument is limiting. I would prefer the server to be able to send the body as a string argument. I've tried to hack around this by using the<(..)
bash statement in order to create an on-the-fly file descriptor and pass it as the body argument instead:This however doesn't work, since sensu-client is using
/bin/sh
and not/bin/bash
(I think), thus the<(..)
statement returns ash: 1: Syntax error: "(" unexpected
.It would've been a lot easier (and simpler) if the body could be passed as a string argument instead of a file. You can easily stay backward compatible by using:
check-http-json.rb -b `cat body.txt`
The text was updated successfully, but these errors were encountered: