diff options
author | miau <miaukatzemiau@priveasy.de> | 2011-12-02 08:25:14 (GMT) |
---|---|---|
committer | miau <miaukatzemiau@priveasy.de> | 2011-12-02 08:25:14 (GMT) |
commit | 6c242e521d822366238b45dae0eabdfc8f7b93f6 (patch) | |
tree | 2353c260c44f15d2bfaf06e35adb1a3c1c623019 /handler | |
parent | b4b4c79cf6276e8d2cb851f4ea3d40102d11c5a4 (diff) |
read/write payloads via stdio
To allow binary save payload transmission:
- broadcaster reads the payload from stdin if the 2nd param is "-"
- listener passes the payload via stdin to all handlers
Diffstat (limited to 'handler')
-rwxr-xr-x | handler/hello | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/handler/hello b/handler/hello index 92e1aa1..68ee5a4 100755 --- a/handler/hello +++ b/handler/hello @@ -4,6 +4,8 @@ LOGFILE="./hello.log" -echo "Someone called 'hello $1'!" >> "$LOGFILE" - +( echo -n "Someone called 'hello " + cat + echo "'!" +) >> "$LOGFILE" |